|
@@ -64,6 +64,7 @@ class WebSocketConnection {
|
|
|
|
|
|
url = url || `${protocol}//${window.location.host}/ws`;
|
|
url = url || `${protocol}//${window.location.host}/ws`;
|
|
|
|
|
|
|
|
+console.log('new connection');
|
|
this.ws = new WebSocket(url);
|
|
this.ws = new WebSocket(url);
|
|
|
|
|
|
if (this.timer) {
|
|
if (this.timer) {
|
|
@@ -73,6 +74,7 @@ class WebSocketConnection {
|
|
|
|
|
|
let resolved = false;
|
|
let resolved = false;
|
|
this.ws.onopen = (e) => {
|
|
this.ws.onopen = (e) => {
|
|
|
|
+console.log(this.ws.readyState);
|
|
resolved = true;
|
|
resolved = true;
|
|
resolve(e);
|
|
resolve(e);
|
|
};
|
|
};
|