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

Allow skip_sid to be a list #202

Closed
mattpepin opened this issue Sep 25, 2018 · 1 comment
Closed

Allow skip_sid to be a list #202

mattpepin opened this issue Sep 25, 2018 · 1 comment
Assignees

Comments

@mattpepin
Copy link

It's currently only possible to skip 1 sid when using emit. It would be easy to change the test condition to skip multiple sid. This is useful in the case of multiple tabs open and the current user has multiple sid.

@miguelgrinberg
Copy link
Owner

Even in the cases where a user is connected with multiple clients, you would want to only skip one. Consider a chat application. If the user types a message from the first connected client, the message should still be sent to all the other clients this user is using. If you skip those clients, the message from the user will not appear in them.

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

No branches or pull requests

2 participants