Use status code 1000 on WebSocket hangup for compatibility.
This commit is contained in:
parent
6039464342
commit
588f64c760
@ -289,7 +289,8 @@ export class WebSocketProvider extends JsonRpcProvider {
|
||||
}));
|
||||
}
|
||||
|
||||
// Hangup (navigating away from the page that opened the connection)
|
||||
this._websocket.close(1001);
|
||||
// Hangup
|
||||
// See: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent#Status_codes
|
||||
this._websocket.close(1000);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user