事件:'connectionAttempt'
【Event: 'connectionAttempt'】
ip<string> 套接字尝试连接的 IP 地址。port<number> 套接字尝试连接的端口。family<number> IP 的类型。可以是6表示 IPv6 或4表示 IPv4。
当开始新的连接尝试时触发。如果在 socket.connect(options) 中启用了网络类型自动选择算法,可能会多次触发此事件。
【Emitted when a new connection attempt is started. This may be emitted multiple times
if the family autoselection algorithm is enabled in socket.connect(options).】