Merge pull request #265 from h3poteto/fix/stop_signal
Fix stop signal of websocket in misskey
This commit is contained in:
commit
21aaf7d71f
|
@ -94,7 +94,7 @@ export default class WebSocket extends EventEmitter implements WebSocketInterfac
|
|||
*/
|
||||
private _resetConnection() {
|
||||
if (this._client) {
|
||||
this._client.close(100)
|
||||
this._client.close(1000)
|
||||
this._client.removeAllListeners()
|
||||
this._client = null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue