fix: instantiate constructors before using those properties

This commit is contained in:
Lewdcario
2018-06-29 13:18:13 -05:00
parent 41a1dee533
commit 92e2c3c7fd
2 changed files with 7 additions and 1 deletions

View File

@@ -44,6 +44,12 @@ class WebSocketConnection extends EventEmitter {
*/
this.sequence = -1;
/**
* The current sessionID of the WebSocket
* @type {string}
*/
this.sessionID = null;
/**
* The current status of the client
* @type {number}

View File

@@ -15,7 +15,7 @@ class RequestHandler {
this.limit = Infinity;
this.resetTime = null;
this.remaining = 1;
this.busy = false;
this.queue = [];
}