Closed uiur closed 8 years ago
I'm using this module with browserify in Chrome latest. I tried the example, but it didn't work.
I've found 'open' event doesn't fire from hub.subscribe(me), so connect() doesn't trigger.
'open'
hub.subscribe(me)
connect()
hub.subscribe(me).once('open', connect).pipe(through.obj(function (data, enc, cb) {
https://github.com/mafintosh/webrtc-swarm/blob/master/index.js#L77
My current workaround is just use setTimeout.
setTimeout
setTimeout(connect, 0) hub.subscribe(me).pipe(through.obj(function (data, enc, cb) {
Do you have any idea about this issue?
Try trying again with the latest version of signalhub (4.1.1) which fixes some bugs that might be related to this.
It works! Thanks :)
\o/
I'm using this module with browserify in Chrome latest. I tried the example, but it didn't work.
I've found
'open'
event doesn't fire fromhub.subscribe(me)
, soconnect()
doesn't trigger.https://github.com/mafintosh/webrtc-swarm/blob/master/index.js#L77
My current workaround is just use
setTimeout
.Do you have any idea about this issue?