add constants, some debug stuff (#791)

* add constants, some debug stuff

* i can't believe i did this
This commit is contained in:
Gus Caplan
2016-10-10 14:53:54 -05:00
committed by Amish Shah
parent 32eeb8ad5e
commit 96355a4968
4 changed files with 6 additions and 1 deletions

View File

@@ -221,7 +221,7 @@ class WebSocketManager extends EventEmitter {
this.client.emit('raw', packet);
if (packet.op === 10) this.client.manager.setupKeepAlive(packet.d.heartbeat_interval);
if (packet.op === Constants.OPCodes.HELLO) this.client.manager.setupKeepAlive(packet.d.heartbeat_interval);
return this.packetManager.handle(packet);
}