This commit is contained in:
Travis CI 2016-12-27 12:14:44 +00:00
parent a3df125ebe
commit 6eb0da585c
2 changed files with 6 additions and 1 deletions

View file

@ -21862,6 +21862,11 @@ class WebSocketPacketManager {
this.ws.client.emit('debug', 'Heartbeat acknowledged');
}
if (packet.op === Constants.OPCodes.HEARTBEAT) {
this.client.ws.send({ op: Constants.OPCodes.HEARTBEAT_ACK });
this.ws.client.emit('debug', 'ACKed gateway heartbeat!');
}
if (this.ws.status === Constants.Status.RECONNECTING) {
this.ws.reconnecting = false;
this.ws.checkIfReady();

File diff suppressed because one or more lines are too long