吕君喜 3 years ago
parent
commit
25798bf1e1

+ 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.");
     }