bugfix
This commit is contained in:
parent
bfbebbdaef
commit
fb50ebe6e3
@ -94,6 +94,7 @@ bricks.Signaling = class {
|
||||
this.sessionhandlers[sessiontype] = handler;
|
||||
}
|
||||
async recvdata_handler(data){
|
||||
console.log('recv data=', data);
|
||||
if (data.type == 'online'){
|
||||
data.online.forEach(p => {
|
||||
var d = this.peers[p.id];
|
||||
@ -282,6 +283,7 @@ bricks.RTCP2PConnect = class {
|
||||
}
|
||||
|
||||
async recvdata_handler(data){
|
||||
console.log('recvdata=', data);
|
||||
var f = this.get_handler(data.type);
|
||||
if (f) {
|
||||
await f(data);
|
||||
|
Loading…
Reference in New Issue
Block a user