Skip to content

Commit

Permalink
Merge pull request #13 from mkhalifeMRP/main
Browse files Browse the repository at this point in the history
feat: adds an initiated callback after websocket opens
  • Loading branch information
mustafaboleken authored Nov 22, 2023
2 parents 8a58b8c + f15bfcc commit e9156c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,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 e9156c5

Please sign in to comment.