mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build for branch wsrewrite: 142183b411ac2164ad9efacf43bfa49d4de3eaa7
This commit is contained in:
parent
c66fde7be8
commit
584fb100e1
2 changed files with 4 additions and 6 deletions
|
|
@ -16207,15 +16207,12 @@ class WebSocketConnection extends EventEmitter {
|
|||
if (!packet.d) this.sessionID = null;
|
||||
return this.identify(packet.d ? 2500 : 0);
|
||||
case Constants.OPCodes.HEARTBEAT_ACK:
|
||||
this.ackHeartbeat();
|
||||
break;
|
||||
return this.ackHeartbeat();
|
||||
case Constants.OPCodes.HEARTBEAT:
|
||||
this.heartbeat();
|
||||
break;
|
||||
return this.heartbeat();
|
||||
default:
|
||||
return this.packetManager.handle(packet);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -16232,6 +16229,7 @@ class WebSocketConnection extends EventEmitter {
|
|||
* Causes a reconnection to the gateway
|
||||
*/
|
||||
reconnect() {
|
||||
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