mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
"knock, knock. who's there. discord, lol" (#1021)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user