Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit d849b01

Browse files
committed
support server path
1 parent de82224 commit d849b01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

streamr-client.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,8 @@
414414
this.connecting = true
415415
this.disconnecting = false
416416

417-
this.socket = this.io(this.options.server, {
418-
forceNew: true,
419-
transports: this.options.transports
420-
})
417+
var options = extend({}, this.options, {forceNew: true})
418+
this.socket = this.io(this.options.server, options)
421419

422420
// Broadcast messages to all subs listening on stream
423421
this.socket.on('b', function(msg) {

0 commit comments

Comments
 (0)