Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Get the rooms guests from socket.io #9

Open
severo opened this issue Jan 20, 2020 · 0 comments
Open

Get the rooms guests from socket.io #9

severo opened this issue Jan 20, 2020 · 0 comments

Comments

@severo
Copy link
Collaborator

severo commented Jan 20, 2020

Currently, the list of users in each room is maintained in a global variable, and modified on every user-related event (connect, disconnect, join...). It would be safer to get this information directly from socket.io API, but it doesn't seem to be straightforward (see https://stackoverflow.com/questions/6563885/socket-io-how-do-i-get-a-list-of-connected-sockets-clients - there is a different solution for every major and minor version of socket.io)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant