Skip to content

Commit cea0dff

Browse files
authored
Merge pull request #514 from jamo/fix/similar-type-comparision
Fixed regression creating connection over wss from node
2 parents e5aec21 + a38551f commit cea0dff

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)