事件:'connectionAttemptTimeout'
¥Event: 'connectionAttemptTimeout'
-
ip<string> 套接字尝试连接的 IP。¥
ip<string> The IP which the socket attempted to connect to. -
port<number> 套接字尝试连接的端口。¥
port<number> The port which the socket attempted to connect to. -
family<number> IP 家族。对于 IPv6 可以是6,对于 IPv4 可以是4。¥
family<number> The family of the IP. It can be6for IPv6 or4for IPv4.
连接尝试超时时触发。仅当在 socket.connect(options) 中启用系列自动选择算法时,才会触发此消息(并且可能会触发多次)。
¥Emitted when a connection attempt timed out. This is only emitted (and may be
emitted multiple times) if the family autoselection algorithm is enabled
in socket.connect(options).