mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +00:00
funny (#1030)
This commit is contained in:
parent
4d2153c7c6
commit
8d966932a9
1 changed files with 4 additions and 1 deletions
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue