AgoraIO-Extensions / agora-rtc-react

Agora RTC React SDK
https://agoraio-extensions.github.io/agora-rtc-react/
MIT License
25 stars 10 forks source link

useJoin hook returning isConnected false #202

Open parvez-144 opened 1 month ago

parvez-144 commented 1 month ago

What kind of problem do you need help?

I am using agora for adding group video call feature, however i am using websockets for a real time whiteboard sharing and real time messaging.When i comment out my socket code ,agora's useJoin hook is working properly but when i also activate my socket i am having trouble in joining channel as use Join returns some data but "isConneted :false". Screenshot 2024-07-21 182608 this is my socket part. Screenshot 2024-07-21 182132 and this is how i am using agora for video sharing. lobby when i comment out my socket's enippet it works.Please help to come out of this issue and let me know if any additional info i can provide.

guoxianzhe commented 1 month ago

@parvez-144 Can you tell me what

socket.emit("")

did? Is that agora's api?

parvez-144 commented 1 month ago

No its not agora's api i am using different websocket to implement messaging.so socket.emit triggers a event to our server when a user joins room and then server broadcasts that info to all other participants in the room that this person joined or left the room.

guoxianzhe commented 1 month ago

@parvez-144 Can you show the logs when you can't join rooms