Replies: 1 comment 3 replies
-
Hi! That sounds weird. Could you please provide an example reproducing the issue? You can start from the basic project here: https://github.com/socketio/socket.io-fiddle |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I am creating a chat app with authentication. I used jwt token and cookies authentication. I want that when I click on certain user the room will get created with same room id for both the use which is stored in both user1 and user2's database. I added this feature when user clicks on any user then emit join chat event and then join the room. But when I click on user1 it works well and when I click on user2 it doesn't join another room which should be joined.
Example : Let's say we have three user user1,user2, and user3. User1 has one contact which is user2, user3 has one contact which is user2, and user3 has two contact which is user1 and user2.
case 1 : so when i open three browser tabs and opens all the three account separately and when from user1 account I click user2 and from user2 I click user1. So in this case all things works perfectly.
case 2: But now since user 2 has two connected people and I want to chat with user3 so when I click on user3 from user2's account and from user3 i click on user2 account , nothing works and when I get back to the case 1 where user1 and 2 are chatting now that doesnt work after this and when I reload the page and follow the case1 so the case1 works.
That is user2 is not joining other room after I click on user3.
Beta Was this translation helpful? Give feedback.
All reactions