mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +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;
|
if (!packet.d) this.sessionID = null;
|
||||||
return this.identify(packet.d ? 2500 : 0);
|
return this.identify(packet.d ? 2500 : 0);
|
||||||
case Constants.OPCodes.HEARTBEAT_ACK:
|
case Constants.OPCodes.HEARTBEAT_ACK:
|
||||||
this.ackHeartbeat();
|
return this.ackHeartbeat();
|
||||||
break;
|
|
||||||
case Constants.OPCodes.HEARTBEAT:
|
case Constants.OPCodes.HEARTBEAT:
|
||||||
this.heartbeat();
|
return this.heartbeat();
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return this.packetManager.handle(packet);
|
return this.packetManager.handle(packet);
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -16232,6 +16229,7 @@ class WebSocketConnection extends EventEmitter {
|
||||||
* Causes a reconnection to the gateway
|
* Causes a reconnection to the gateway
|
||||||
*/
|
*/
|
||||||
reconnect() {
|
reconnect() {
|
||||||
|
this.client.emit(Constants.Events.RECONNECTING);
|
||||||
this.connect(this.gateway, 5500, true);
|
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