'close' 事件


  • hadError <boolean> 如果套接字有传输错误,则为 true

一旦套接字完全关闭就触发。 参数 hadError 是布尔值,表示套接字是否由于传输错误而关闭。

  • hadError <boolean> true if the socket had a transmission error.

Emitted once the socket is fully closed. The argument hadError is a boolean which says if the socket was closed due to a transmission error.