Skip to content

Instantly share code, notes, and snippets.

megadrazz / net.js
Created May 15, 2020 05:41 — forked from sid24rane/net.js
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
console.log('Server closed !');