diff --git a/bricks/rtc.js b/bricks/rtc.js index a61fa60..e871bcf 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -289,10 +289,11 @@ bricks.RTCP2PConnect = class { async recvdata_handler(data){ console.log('recvdata=', data); - var f = this.get_handler(data.type); + var f = this.signal_handlers[data.type]; if (f) { await f(data); } + console.log('recvdata=', data, 'NOT HANDLED'); } async ice_statechange(peer, event){