This commit is contained in:
Travis CI 2016-12-28 06:43:32 +00:00
parent 79c7c66e8a
commit b5baaf412a
2 changed files with 5 additions and 2 deletions

View file

@ -21862,7 +21862,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');
}

File diff suppressed because one or more lines are too long