-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client not receiving Server emit when sending to specific room (Angular) #3673
Comments
Having the same issue after migrating from v2 to v3. Env: Any solutions? |
Upgrading to socket.io-redis 6.0.1 seems to solve my issue |
For me, the problem was that I changed the socket.id to my own given which apparently makes the socket unable to join the room. |
For future readers: The culprit here is calling Please reopen if needed. PS: that being said, I think the library should prevent this from happening. Open to suggestions on this! |
THANK YOU! |
So I am trying to emit a User list to the room after someone joins the room by using the io.to(room.id).emit() function but the client doesn't seem to receive anything.
My 3 main files in question are:
Lobbies.component.ts
Socket.service.ts
Server.js
With socket.emit() it seems to display the user list fine but it is not what i need as it dispays it for everyone even though they are in different lobbies.
I hope someone can help me with this issue. I am very desperate for answers as i've been struggling with it for days.
Thanks for your time!
The text was updated successfully, but these errors were encountered: