fix(WebsocketShard): pass ignore ACK when Discord asks for a beat (#3993)

This commit is contained in:
didinele
2020-03-25 13:55:20 +02:00
committed by GitHub
parent f2fdb93318
commit 65e8c92d7c

View File

@@ -429,7 +429,7 @@ class WebSocketShard extends EventEmitter {
this.ackHeartbeat(); this.ackHeartbeat();
break; break;
case OPCodes.HEARTBEAT: case OPCodes.HEARTBEAT:
this.sendHeartbeat('HeartbeatRequest'); this.sendHeartbeat('HeartbeatRequest', true);
break; break;
default: default:
this.manager.handlePacket(packet, this); this.manager.handlePacket(packet, this);