This commit is contained in:
Gus Caplan
2016-12-28 00:42:42 -06:00
committed by Schuyler Cebulskie
parent 4d2153c7c6
commit 8d966932a9

View File

@@ -94,7 +94,10 @@ class WebSocketPacketManager {
this.ws.lastHeartbeatAck = true;
this.ws.client.emit('debug', 'Heartbeat acknowledged');
} 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');
}