Skip to content

Add some useful methods#168

Merged
darrachequesne merged 5 commits intosocketio:masterfrom
darrachequesne:feature/requests
Jan 8, 2017
Merged

Add some useful methods#168
darrachequesne merged 5 commits intosocketio:masterfrom
darrachequesne:feature/requests

Conversation

@darrachequesne
Copy link
Member

This PR add some useful (well, I guess) methods:

  • allRooms: Returns the list of all rooms.
  • remoteJoin: Makes the socket with the given id join the room.
  • remoteLeave: Makes the socket with the given id leave the room.
  • customRequest: Sends a request to every nodes, that will respond through the customHook method.

Closes #154, closes #125
Also closes #68

cc @connected-yzhang @infnada @jreeter @mp3il

@darrachequesne darrachequesne changed the title Feature/requests Add some useful methods Jan 6, 2017
@connected-yzhang
Copy link

Awesome! @darrachequesne Thanks so much! @Adjective-Object Fancy a look?

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.

Joining socket room from instance that doesn't have the socket in memory. Any way to know which users are in rooms on other nodes?

2 participants