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