Skip to content

Commit

Permalink
feat: adds an initiated callback after websocket opens
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0kh committed Nov 19, 2023
1 parent 40d2d8f commit f15bfcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export function useAntMedia(params: Params) {
iceCandidateList[streamId] = [];
if (isTypeOffer) {
const configur = await remotePeerConnection[streamId].createAnswer(

);
await gotDescription(configur, streamId);
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f15bfcc

Please sign in to comment.