Skip to content

Commit 6404391

Browse files
refactor: allow transportOptions to override all other options
Related: socketio/socket.io#4719
1 parent cf6aa1f commit 6404391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/socket.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,15 +418,15 @@ export class Socket extends Emitter<
418418

419419
const opts = Object.assign(
420420
{},
421-
this.opts.transportOptions[name],
422421
this.opts,
423422
{
424423
query,
425424
socket: this,
426425
hostname: this.hostname,
427426
secure: this.secure,
428427
port: this.port,
429-
}
428+
},
429+
this.opts.transportOptions[name]
430430
);
431431

432432
debug("options: %j", opts);

0 commit comments

Comments
 (0)