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

added roomClients method #1

Merged
merged 2 commits into from
Nov 23, 2014
Merged

added roomClients method #1

merged 2 commits into from
Nov 23, 2014

Conversation

barisusakli
Copy link

returns rooms the socket is in
returns all rooms if no socket id is passed in

returns rooms the socket is in
returns all rooms if no socket id is passed in
@barisusakli
Copy link
Author

I am not really sure about the optional first param. redis-adapter doesn't support this.

@FREEZX
Copy link
Owner

FREEZX commented Nov 21, 2014

I think it should be required, without it the function call wouldn't make sense.
Also, i think that maybe the function should be renamed to clientRooms because we're getting the client's joined rooms, rather than the room's clients

@barisusakli
Copy link
Author

Agreed about the name change I just named it roomClients because it was called that in 0.9.x. clientRooms makes more sense.

A way to get all rooms in a hash would be useful as well but I made a separate issue for that on main socket.io repo.

FREEZX added a commit that referenced this pull request Nov 23, 2014
@FREEZX FREEZX merged commit 3e2bc7a into FREEZX:master Nov 23, 2014
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