socket.connect(port[, host][, connectListener])


在给定的套接字上发起 TCP 连接。

¥Initiate a TCP connection on the given socket.

socket.connect(options[, connectListener]) 的别名,{port: port, host: host} 作为 options 调用。

¥Alias to socket.connect(options[, connectListener]) called with {port: port, host: host} as options.