diff --git a/bricks/rtc.js b/bricks/rtc.js index c2ee3ff..a61fa60 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -199,6 +199,10 @@ bricks.RTCP2PConnect = class { add_handler(type, f){ this.signal_handlers[type] = f; } + get_handler(type){ + return this.signal_handlers[type]; + } + async p2pconnect(peer){ await this.getLocalStream(); await this.createPeerConnection(peer);