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
feat: broadcast to only selected client #458
Comments
To broadcast to a specific client you can just add the message to the specific client’s sink. Regarding groups, that is something that you would have to implement currently. |
thanks! I implemented the groups by storing the client's sink to its corresponding group id's in a |
No problem! |
Sure, Can you transfer this issue to the |
Unfortunately, I can't transfer the issue because the broadcast_bloc repository isn't part of the same GitHub organization. |
closing on felangel/broadcast_bloc#2 |
@felangel how do we add a message to a specific client's sink? Do we have a pointer to each connected client? Which variable holds this info? thanks |
@aytunch each time a new client connects you get a channel object which corresponds to the client and allows you to send/received messages with that specific client. Hope that helps 👍 |
Description
Are there a way to group a selected client and broadcast only within that group ? Client that are not in the group should no listen to the message.
socket.io JS packages uses
join()
andto()
to broadcast within a group.The text was updated successfully, but these errors were encountered: