Updated hello-tcp.js due to API changes. 

The "connect" event is assigned to handler that is passed to the createServer method.

The previous example didn't work since apparently you cannot assign again handler for "connect" event.