mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-30 23:50:07 +00:00
fix heartbeats once and for all (#1016)
This commit is contained in:
@@ -84,6 +84,7 @@ class WebSocketPacketManager {
|
||||
|
||||
if (packet.op === Constants.OPCodes.HEARTBEAT_ACK) {
|
||||
this.ws.client._pong(this.ws.client._pingTimestamp);
|
||||
this.ws.lastHeartbeatAck = true;
|
||||
this.ws.client.emit('debug', 'Heartbeat acknowledged');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user