Skip to content

Commit a38551f

Browse files
committed
Fixed regression creating connection over wss from node
1 parent e5aec21 commit a38551f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/transports/websocket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ WS.prototype.uri = function () {
236236
var port = '';
237237

238238
// avoid port if default for schema
239-
if (this.port && (('wss' === schema && this.port !== 443) ||
240-
('ws' === schema && this.port !== 80))) {
239+
if (this.port && (('wss' === schema && Number(this.port) !== 443) ||
240+
('ws' === schema && Number(this.port) !== 80))) {
241241
port = ':' + this.port;
242242
}
243243

0 commit comments

Comments
 (0)