Skip to content

Commit 404f817

Browse files
502647092darrachequesne
authored andcommitted
fix: engine.io-client port handle error
1 parent 6f9b198 commit 404f817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/engine.io-client/lib/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export abstract class Transport extends Emitter<
192192
private _port() {
193193
if (
194194
this.opts.port &&
195-
((this.opts.secure && Number(this.opts.port !== 443)) ||
195+
((this.opts.secure && Number(this.opts.port) !== 443) ||
196196
(!this.opts.secure && Number(this.opts.port) !== 80))
197197
) {
198198
return ":" + this.opts.port;

0 commit comments

Comments
 (0)