This commit is contained in:
yumoqing 2024-10-11 11:05:38 +08:00
parent bfbebbdaef
commit fb50ebe6e3

View File

@ -94,6 +94,7 @@ bricks.Signaling = class {
this.sessionhandlers[sessiontype] = handler; this.sessionhandlers[sessiontype] = handler;
} }
async recvdata_handler(data){ async recvdata_handler(data){
console.log('recv data=', data);
if (data.type == 'online'){ if (data.type == 'online'){
data.online.forEach(p => { data.online.forEach(p => {
var d = this.peers[p.id]; var d = this.peers[p.id];
@ -282,6 +283,7 @@ bricks.RTCP2PConnect = class {
} }
async recvdata_handler(data){ async recvdata_handler(data){
console.log('recvdata=', data);
var f = this.get_handler(data.type); var f = this.get_handler(data.type);
if (f) { if (f) {
await f(data); await f(data);