UNPKG

microwizard

Version:

A fast and stable microservice framework, mostly compatible with senecas user API

14 lines (10 loc) 266 B
import Net from 'net'; const listener = Net.createServer( { noDelay: true }, function (connection) { connection.on('data', x => console.log(x.toString())); setTimeout(() => connection.end(), 1000 * 10); }); listener.listen(5000, '127.0.0.1');