Исправление привнесенного бага

This commit is contained in:
Book Pauk
2022-07-19 00:50:44 +07:00
parent 7c253df291
commit f0832b07cb

View File

@@ -92,7 +92,7 @@ class WebSocketConnection {
if (isBrowser) {
const protocol = (window.location.protocol == 'https:' ? 'wss:' : 'ws:');
const url = this.url || `${protocol}//${window.location.host}/ws`;
this.ws = new this.WebSocket(url, this.webSocketOptions);
this.ws = new this.WebSocket(url);
} else {
this.ws = new this.WebSocket(this.url, this.webSocketOptions);
}