mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
minor fixes
This commit is contained in:
parent
b518437f52
commit
74ef0b2e14
1 changed files with 2 additions and 1 deletions
|
|
@ -210,12 +210,13 @@ class WebSocketManager extends EventEmitter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run whenever the connection to the gateway is closed, it will try to reconnect the client.
|
* Run whenever the connection to the gateway is closed, it will try to reconnect the client.
|
||||||
* @param {Object} event The received websocket data
|
* @param {CloseEvent} event The WebSocket close event
|
||||||
*/
|
*/
|
||||||
eventClose(event) {
|
eventClose(event) {
|
||||||
this.emit('close', event);
|
this.emit('close', event);
|
||||||
this.client.clearInterval(this.client.manager.heartbeatInterval);
|
this.client.clearInterval(this.client.manager.heartbeatInterval);
|
||||||
this.status = Constants.Status.DISCONNECTED;
|
this.status = Constants.Status.DISCONNECTED;
|
||||||
|
this._queue = [];
|
||||||
/**
|
/**
|
||||||
* Emitted whenever the client websocket is disconnected
|
* Emitted whenever the client websocket is disconnected
|
||||||
* @event Client#disconnect
|
* @event Client#disconnect
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue