Skip to content

Commit 82ec1ba

Browse files
committed
fix(WebRTCService): each peer can open a door to the webChannel instead to have only one door availa
The join key equals to webChannel.id plus peerId.
1 parent f1e7a4a commit 82ec1ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/netflux.es2015.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
}
350350

351351
open (webChannel, onChannel, options = {}) {
352-
let key = webChannel.id
352+
let key = webChannel.id + webChannel.myId
353353
let settings = Object.assign({}, this.settings, options)
354354
// Connection array, because several connections may be establishing
355355
// at the same time

dist/netflux.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ return /******/ (function(modules) { // webpackBootstrap
587587

588588
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
589589

590-
var key = webChannel.id;
590+
var key = webChannel.id + webChannel.myId;
591591
var settings = Object.assign({}, this.settings, options);
592592
// Connection array, because several connections may be establishing
593593
// at the same time

0 commit comments

Comments
 (0)