mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
funny (#1030)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
4d2153c7c6
commit
8d966932a9
@@ -94,7 +94,10 @@ class WebSocketPacketManager {
|
|||||||
this.ws.lastHeartbeatAck = true;
|
this.ws.lastHeartbeatAck = true;
|
||||||
this.ws.client.emit('debug', 'Heartbeat acknowledged');
|
this.ws.client.emit('debug', 'Heartbeat acknowledged');
|
||||||
} else if (packet.op === Constants.OPCodes.HEARTBEAT) {
|
} else if (packet.op === Constants.OPCodes.HEARTBEAT) {
|
||||||
this.client.ws.send({ op: Constants.OPCodes.HEARTBEAT });
|
this.client.ws.send({
|
||||||
|
op: Constants.OPCodes.HEARTBEAT,
|
||||||
|
d: this.client.ws.sequence,
|
||||||
|
});
|
||||||
this.ws.client.emit('debug', 'Received gateway heartbeat');
|
this.ws.client.emit('debug', 'Received gateway heartbeat');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user