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

Code to notify user when room is full is in available but it does not work! #30

Open
iambenkay opened this issue Apr 15, 2020 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@iambenkay
Copy link

I noticed that the following line quotes here should limit users once the room has 2 participants but it does not work.

socket.emit("full", room);

@Chaphasilor
Copy link
Collaborator

Could you elaborate on this? What exactly is not working here?

@ianramzy
Copy link
Owner

ianramzy commented Apr 15, 2020 via email

@Chaphasilor
Copy link
Collaborator

How about instead of a persistant connection, we make the clients, possibly only the 'host' (or innitiator of the call) ping the server every few minutes?
The server just keeps a list of active rooms and removes the rooms after not getting a ping for a few minutes?

Or we could make both clients ping the server and the server hashes each client's IP and links it to the room, so than once one client disconnects from a room, another client can join. We'd need to increase the ping interval, but that shouldn't be an issue.

This should guarantee anonymity for the clients and prevent this issue from happening?

@ianramzy
Copy link
Owner

ianramzy commented Apr 15, 2020 via email

@Chaphasilor
Copy link
Collaborator

Wouldn't we still need limit the size of the call? Depending on the topology we use, we can't support a call with 8 people or more...

@Chaphasilor Chaphasilor added bug Something isn't working question Further information is requested labels Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants