diff --git a/bricks/rtc.js b/bricks/rtc.js index f30bc48..a1b7b81 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -375,7 +375,7 @@ bricks.RTCP2PConnect = class { await this.opts.on_dc_close(dc); } } - createDataChannel(peer){ + async createDataChannel(peer){ this.peers[peer.id].dc = pc.createDataChannel('chat', {ordered:true}); var dc = this.peers[peer.id].dc; await this.dc_created(peer, this.peers[peer.id].dc);