吕君喜 3 年之前
父節點
當前提交
25798bf1e1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pomelo-client-websocket/node_modules/websocket/lib/WebSocketClient.js

+ 1 - 1
pomelo-client-websocket/node_modules/websocket/lib/WebSocketClient.js

@@ -148,7 +148,7 @@ WebSocketClient.prototype.connect = function(requestUrl, protocols, origin, head
     if (!this.url.protocol) {
         throw new Error("You must specify a full WebSocket URL, including protocol.");
     }
-    if (!this.url.host) {
+    if (!this.url.hostname) {
         throw new Error("You must specify a full WebSocket URL, including hostname.  Relative URLs are not supported.");
     }