Fix stop signal of websocket in misskey

This commit is contained in:
AkiraFukushima 2020-03-17 23:55:51 +09:00
parent 0ec210cc24
commit c5cbf57ea7

View file

@ -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
}