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 the timeout 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.