Node.js net socket create server

Description

Node.js net socket create server


var net=require('net');
var s=net.createServer(function(socket){
  socket.end('goodby\n');
});//from   w  w w . ja v a2 s  . c  o m
s.listen(8000);



PreviousNext

Related