You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have user stored in database. When this user logs in and starts 1-on-1 chat with another user, we create a room for them. When the user joins, we get a peer joined event, but this peer CID is not associated with the user at all. What is the best way to associate node id with a user identity?
Also there seems to a significant delay when peer joined event is fired
Thanks in advance!
The text was updated successfully, but these errors were encountered:
So here is my solution, not sure it is the best approach, happy to discuss with everyone here.
Similar to TCP 3-way handshake, I need other users to confirm that I have successfully joined the room first via peer joined event, then other users will broadcast this peer ID. If it happens to be my peer ID, that means I have successfully joined. Now, I can broadcast my identity to everyone in the room
I have user stored in database. When this user logs in and starts 1-on-1 chat with another user, we create a room for them. When the user joins, we get a
peer joined
event, but this peer CID is not associated with the user at all. What is the best way to associate node id with a user identity?Also there seems to a significant delay when
peer joined
event is firedThanks in advance!
The text was updated successfully, but these errors were encountered: