瀏覽代碼

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

Book Pauk 3 年之前
父節點
當前提交
f0832b07cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/core/WebSocketConnection.js

+ 1 - 1
server/core/WebSocketConnection.js

@@ -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);
                 }