mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Webpack build for branch wsrewrite: aec0ec37a26383585e88c8410bb5e92cbc0b4eb4
This commit is contained in:
parent
a036f3eb9d
commit
00f33ebacc
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
2
discord.wsrewrite.min.js
vendored
2
discord.wsrewrite.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue