This commit is contained in:
yumoqing 2024-10-11 17:34:17 +08:00
parent d45f625a7d
commit 79154df9fb

View File

@ -355,9 +355,9 @@ bricks.RTCP2PConnect = class {
}
async dc_created(peer, dc){
console.log('dc_created.....', dc);
dc.onmessage = this.datachannel_message.bind(this, peer);
dc.onopen = this.datachannel_open(this, peer);
dc.onclose = this.datachannel_close(this, peer);
dc.onmessage = this.datachannel_message.bind(peer);
dc.onopen = this.datachannel_open(peer);
dc.onclose = this.datachannel_close(peer);
}
async datachannel_message(peer, msg){