From 491ffe236e5e256a9dbce230c8cde38ec45f3341 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 11 Oct 2024 12:04:32 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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){