mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
"knock, knock. who's there. discord, lol" (#1021)
This commit is contained in:
parent
b79533e373
commit
bac4ccead7
1 changed files with 5 additions and 0 deletions
|
|
@ -95,6 +95,11 @@ class WebSocketPacketManager {
|
||||||
this.ws.client.emit('debug', 'Heartbeat acknowledged');
|
this.ws.client.emit('debug', 'Heartbeat acknowledged');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (packet.op === Constants.OPCodes.HEARTBEAT) {
|
||||||
|
this.client.ws.send({ op: Constants.OPCodes.HEARTBEAT_ACK });
|
||||||
|
this.ws.client.emit('debug', 'ACKed gateway heartbeat!');
|
||||||
|
}
|
||||||
|
|
||||||
if (this.ws.status === Constants.Status.RECONNECTING) {
|
if (this.ws.status === Constants.Status.RECONNECTING) {
|
||||||
this.ws.reconnecting = false;
|
this.ws.reconnecting = false;
|
||||||
this.ws.checkIfReady();
|
this.ws.checkIfReady();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue