Example code of tcp socket program for node.js