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

Add nsp prefix to socket.id #1058

Merged
merged 2 commits into from
Jan 13, 2017

Conversation

darrachequesne
Copy link
Member

Following #959

Currently, the socket.id for a non-default namespace is different on the server / on the client (e9232kh on the client, no matter which namespace, but /<nsp>#e9232kh on the server). That commit fixes that.

Related: https://github.com/socketio/socket.io/pull/2509/files

@darrachequesne darrachequesne merged commit fcb5c43 into socketio:master Jan 13, 2017
@darrachequesne darrachequesne deleted the fix/socket-id branch January 13, 2017 15:53
@darrachequesne darrachequesne added this to the 2.0.0 milestone Jun 1, 2017
bot-linagora pushed a commit to linagora/openpaas-esn that referenced this pull request Sep 18, 2019
io.of(namespace).sockets will be an object instead of array

the id of connection on client side in the new version is appended by a namespace prefix. Take a look at: socketio/socket.io-client#1058
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

Successfully merging this pull request may close these issues.

2 participants