Update to master

This commit is contained in:
Amish Shah
2017-10-29 13:50:49 +00:00
35 changed files with 213 additions and 129 deletions

View File

@@ -22,6 +22,7 @@ class ClientManager {
/**
* The status of the client
* @readonly
* @type {number}
*/
get status() {

View File

@@ -272,7 +272,7 @@ class WebSocketConnection extends EventEmitter {
try {
const packet = WebSocket.unpack(this.inflate.result);
this.onPacket(packet);
if (this.client.listenerCount('raw')) this.client.emit('raw', data);
if (this.client.listenerCount('raw')) this.client.emit('raw', packet);
} catch (err) {
this.client.emit('debug', err);
}