fsankar wrote:Where did conn come from? sorry I am new to the software. what is conn . where can I find how to use it?
See my link below and explore the official project documentation. The net.createServer() call returns a server object. It's listen method uses a callback to pass the new connection to the application. This callback takes a single input argument -- the connection object. This is all explain in the API documentation.