We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5aec21 commit a38551fCopy full SHA for a38551f
lib/transports/websocket.js
@@ -236,8 +236,8 @@ WS.prototype.uri = function () {
236
var port = '';
237
238
// avoid port if default for schema
239
- if (this.port && (('wss' === schema && this.port !== 443) ||
240
- ('ws' === schema && this.port !== 80))) {
+ if (this.port && (('wss' === schema && Number(this.port) !== 443) ||
+ ('ws' === schema && Number(this.port) !== 80))) {
241
port = ':' + this.port;
242
}
243
0 commit comments