事件:'close'
\Event: 'close'
新增于: v0.1.90
-
hadError<boolean>true如果套接字有传输错误。\
hadError<boolean>trueif 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.