net.createConnection() returns a Socket object. client.destroy() is what you want to do.
Source: http://nodejs.org/docs/latest/api/net.html#socket.destroy
net.createConnection() returns a Socket object. client.destroy() is what you want to do.
Source: http://nodejs.org/docs/latest/api/net.html#socket.destroy