We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should the socket.id be different in the two session in localhost ?
for example in normal chrome tab and private tab, this two tab must have deffrent socket id ?
Let me be clear about this, following code must send test to 1 user, but test can send in all sockets. like io.emit.
io.on('connection', function(socket){ socket.on('test', function(data){ socket.emit('test'); }); });
The text was updated successfully, but these errors were encountered:
Yes, the socket.id is unique per connection.
socket.id
Sorry, something went wrong.
Yes, but in the localhost the socket.id is the same. anyway, i was able to solve this problem with replace socket.id with my users id.
No branches or pull requests
Should the socket.id be different in the two session in localhost ?
for example in normal chrome tab and private tab, this two tab must have deffrent socket id ?
Let me be clear about this, following code must send test to 1 user, but test can send in all sockets. like io.emit.
The text was updated successfully, but these errors were encountered: