outgoingMessage.setTimeout(msecs[, callback])


  • msecs <number>
  • callback <Function> 可选函数,在超时发生时调用。与绑定 timeout 事件相同。
  • 返回:<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.】