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