From 5e8b2e1c875af8246b93d0a8c04bf1b1780b1a91 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 30 Oct 2020 12:22:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/api/webSocketConnection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/api/webSocketConnection.js b/client/api/webSocketConnection.js index e5b79789..bc052252 100644 --- a/client/api/webSocketConnection.js +++ b/client/api/webSocketConnection.js @@ -64,6 +64,7 @@ class WebSocketConnection { url = url || `${protocol}//${window.location.host}/ws`; +console.log('new connection'); this.ws = new WebSocket(url); if (this.timer) { @@ -73,6 +74,7 @@ class WebSocketConnection { let resolved = false; this.ws.onopen = (e) => { +console.log(this.ws.readyState); resolved = true; resolve(e); };