From 92e2c3c7fd88d9e5b708920bc16e247395813021 Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Fri, 29 Jun 2018 13:18:13 -0500 Subject: [PATCH] fix: instantiate constructors before using those properties --- src/client/websocket/WebSocketConnection.js | 6 ++++++ src/rest/handlers/RequestHandler.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/client/websocket/WebSocketConnection.js b/src/client/websocket/WebSocketConnection.js index 5e07b1a69..fdf58eb5c 100644 --- a/src/client/websocket/WebSocketConnection.js +++ b/src/client/websocket/WebSocketConnection.js @@ -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} diff --git a/src/rest/handlers/RequestHandler.js b/src/rest/handlers/RequestHandler.js index 03e5e8fca..095699e0d 100644 --- a/src/rest/handlers/RequestHandler.js +++ b/src/rest/handlers/RequestHandler.js @@ -15,7 +15,7 @@ class RequestHandler { this.limit = Infinity; this.resetTime = null; this.remaining = 1; - + this.busy = false; this.queue = []; }