事件:'close'


¥Event: 'close'

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

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

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

¥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.