-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Joining same room more then once and clients in a room #1544
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
Comments
I posted same question at Stackoverflow as well: http://stackoverflow.com/questions/23930388/joining-same-room-more-then-once-and-clients-in-a-room |
I hope this helps. Closing the issue since number 2 is a duplicate. |
Thanks! That's works for me. Maybe Wiki should be updated with this information since it is referring to older version of API? |
@ismarslomic thanks for pointing that out. The socket.io website has some documentation about rooms. We will have all our documentation there in the future. |
Im talking particullary about the Wiki-page at Github (https://github.com/Automattic/socket.io/wiki/Rooms#clients-in-a-room) and not socket.io web page. I'm not sure which of these two will be the master documentation place for the project. Right now it's little bit confusing, since you can find different information at different places. |
I'm trying to figure out what happens if the clients emits to join the same room more then once, To test and find answer on this I wanted initially to find out how many clients room has after same clients send more then one emit for joining the room, but Rooms chapter in wiki is outdated. When I try to use
io.sockets.clients('room')
I getObject #<Namespace> has no method 'clients'
.So I got two questions:
Im using socket.io v1.0.2
The text was updated successfully, but these errors were encountered: