Отладка
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user