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


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

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

Initiate a TCP connection on the given socket.

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