outgoingMessage.setTimeout(msecs[, callback])
-
msecs<number> -
callback<Function> 发生超时时要调用的可选函数。与绑定到timeout事件相同。¥
callback<Function> Optional function to be called when a timeout occurs. Same as binding to thetimeoutevent. -
返回:<this>
¥Returns: <this>
一旦套接字与消息关联并连接,则 socket.setTimeout() 将被调用,msecs 作为第一个参数。
¥Once a socket is associated with the message and is connected,
socket.setTimeout() will be called with msecs as the first parameter.