This commit is contained in:
Travis CI 2016-12-23 14:38:16 +00:00
parent 8a73d1d483
commit 2d70cab606
2 changed files with 3 additions and 2 deletions

View file

@ -21582,12 +21582,13 @@ class WebSocketManager extends EventEmitter {
/**
* 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) {
this.emit('close', event);
this.client.clearInterval(this.client.manager.heartbeatInterval);
this.status = Constants.Status.DISCONNECTED;
this._queue = [];
/**
* Emitted whenever the client websocket is disconnected
* @event Client#disconnect

File diff suppressed because one or more lines are too long