bridge: log code and reason in close handler
This commit is contained in:
parent
d63933f06c
commit
09ecdf6cda
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ export default class {
|
|||
|
||||
this.dispatch(payload.t, payload.d);
|
||||
};
|
||||
this.ws.onclose = ({ code }) => {
|
||||
this.ws.onclose = ({ code, reason }) => {
|
||||
this.authenticated = false;
|
||||
this.user = null;
|
||||
this.channels = null;
|
||||
|
@ -145,7 +145,7 @@ export default class {
|
|||
|
||||
this.dispatch(GatewayEventType.Close, code);
|
||||
|
||||
log("close");
|
||||
log("close", code, reason);
|
||||
};
|
||||
this.ws.onerror = (e) => {
|
||||
log("websocket: onerror", e);
|
||||
|
|
Loading…
Reference in a new issue