'connect' 事件


connect() 调用成功而使 socket 与远程地址关联之后,则会触发 'connect' 事件。

The 'connect' event is emitted after a socket is associated to a remote address as a result of a successful connect() call.