This commit is contained in:
yumoqing 2024-10-11 17:16:46 +08:00
parent c78438075c
commit b6ca1750b2

View File

@ -353,11 +353,11 @@ bricks.RTCP2PConnect = class {
await this.dc_created(peer, event);
}
async dc_created(peer, dc){
console.log('dc_created.....');
console.log('dc_created.....', dc);
this.peers[peer.id].dc = dc;
dc.onmessage = this.datachannel_message.bind(this, peer);
dc.onopen = this.datachannel_open(this, peer);
dc.onclose = this.datachannl_close(this, peer);
dc.onclose = this.datachannel_close(this, peer);
}
async datachannel_message(peer, msg){