Skip to content

Instantly share code, notes, and snippets.

View black's full-sized avatar
💭
Looking for a hardware engineer for a collaborative project.

A B H I N A V / K R black

💭
Looking for a hardware engineer for a collaborative project.
View GitHub Profile
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active April 1, 2025 08:06
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');