diff --git a/client/api/WebSocketConnection.js b/client/api/WebSocketConnection.js index e212311b..49babb65 100644 --- a/client/api/WebSocketConnection.js +++ b/client/api/WebSocketConnection.js @@ -58,6 +58,7 @@ class WebSocketConnection { resolve(this.ws); } else { url = url || `ws://${window.location.host}/ws`; + this.ws = new WebSocket(url); if (this.timer) {