事件:'timeout'


【Event: 'timeout'

如果套接字因长时间未活动而超时,将发出此信号。这仅用于通知套接字处于空闲状态。用户必须手动关闭连接。

【Emitted if the socket times out from inactivity. This is only to notify that the socket has been idle. The user must manually close the connection.】

另请参见:socket.setTimeout()

【See also: socket.setTimeout().】