From f15bfcc5b4f8fd2fd2d1b86dd085918c2fabb098 Mon Sep 17 00:00:00 2001 From: mkhalifeMRP Date: Sun, 19 Nov 2023 00:02:26 -0500 Subject: [PATCH] feat: adds an initiated callback after websocket opens --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 37b9256..2c62dd7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -414,7 +414,7 @@ export function useAntMedia(params: Params) { iceCandidateList[streamId] = []; if (isTypeOffer) { const configur = await remotePeerConnection[streamId].createAnswer( - + ); await gotDescription(configur, streamId); } @@ -500,7 +500,7 @@ export function useAntMedia(params: Params) { useEffect(() => { ws.onopen = () => { if (debug) console.log('web socket opened !'); - + callback.call(adaptorRef.current, 'initiated'); // connection opened if (!onlyDataChannel) {