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