Webpack build for branch wsrewrite: aec0ec37a26383585e88c8410bb5e92cbc0b4eb4

This commit is contained in:
Travis CI 2017-04-26 16:07:35 +00:00
parent a036f3eb9d
commit 00f33ebacc
2 changed files with 3 additions and 1 deletions

View file

@ -16244,6 +16244,7 @@ class WebSocketConnection extends EventEmitter {
return this.reconnect();
case Constants.OPCodes.INVALID_SESSION:
if (!packet.d) this.sessionID = null;
this.debug('Session invalidated -- will identify with a new session');
return this.identify(packet.d ? 2500 : 0);
case Constants.OPCodes.HEARTBEAT_ACK:
return this.ackHeartbeat();
@ -16268,6 +16269,7 @@ class WebSocketConnection extends EventEmitter {
* Causes a reconnection to the gateway
*/
reconnect() {
this.debug('Attemping to reconnect in 5500ms...');
this.client.emit(Constants.Events.RECONNECTING);
this.connect(this.gateway, 5500, true);
}

File diff suppressed because one or more lines are too long