Skip to content
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

No way to get session ID of specific Namespace #323

Closed
isaac-mcfadyen opened this issue Jun 11, 2022 · 1 comment
Closed

No way to get session ID of specific Namespace #323

isaac-mcfadyen opened this issue Jun 11, 2022 · 1 comment

Comments

@isaac-mcfadyen
Copy link

  • Currently, there's no way to get the Session/Socket ID of a specific namespace.
  • For example, I have a namespace /chat. When I use Socket->SessionId I get the Session ID of the default namespace (/) whereas on the server, when I do socket.id I get the ID of the /chat namespace.
  • This is a problem as they don't match and I'm wanting to do connection tracking based on Session ID (which is currently impossible because of this).
@isaac-mcfadyen isaac-mcfadyen changed the title No way to get Namespace session ID No way to get session ID of specific Namespace Jun 11, 2022
@isaac-mcfadyen
Copy link
Author

isaac-mcfadyen commented Jun 11, 2022

Closing.

Based on this issue the way to get matching session IDs is to do socket.client.id on the server (Typescript says it's invalid but it seems to work anyway). Not sure why you need to do this but it's not a problem with this client.

socketio/socket.io#2405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant