mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 09:13:22 +00:00
Improve some Gus shenanigans
This commit is contained in:
parent
14ba0373eb
commit
84991c767e
1 changed files with 2 additions and 4 deletions
|
|
@ -93,11 +93,9 @@ class WebSocketPacketManager {
|
||||||
this.ws.client._pong(this.ws.client._pingTimestamp);
|
this.ws.client._pong(this.ws.client._pingTimestamp);
|
||||||
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) {
|
||||||
|
|
||||||
if (packet.op === Constants.OPCodes.HEARTBEAT) {
|
|
||||||
this.client.ws.send({ op: Constants.OPCodes.HEARTBEAT });
|
this.client.ws.send({ op: Constants.OPCodes.HEARTBEAT });
|
||||||
this.ws.client.emit('debug', 'Received gateway heartbeat!');
|
this.ws.client.emit('debug', 'Received gateway heartbeat');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.ws.status === Constants.Status.RECONNECTING) {
|
if (this.ws.status === Constants.Status.RECONNECTING) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue