-
Notifications
You must be signed in to change notification settings - Fork 833
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
Possibility to forward a change to a subset of clients (conditional broadcast) #1207
Comments
I think we have internally a _broadcast function that broadcasts to a list of clients. Is it true? |
This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines. |
A great use case is a Chat application: not all clients should receive a message sent to a subset of connected users. |
A use case is in this issue: Avaiga/taipy-doc#941 |
Conditional broadcast is achieved via callback: |
* broadcast callback on non shared variables resolves #1207 * update example * remove shared from the broadcast example * - remove broadcast_callback_on_shared - add state to global ctx to allow use of state in function call used as bound value * remove broadcast_callback_on_shared * some of Fab's comments * some of Fab's comments * Merci les tests * Expose invoke_callback() and broadcast_callback() as Gui methods. * Added Gui.broadcast_change() and gui.broadcast_changes() * Fix Gui.broadcast_changes() * Group shared/broadcast tests * Fix tests * Spelling * Fix mypy * Update doc examples * Linter * More linters * Fix tests and make linters even more happy * Fix test [2] * Re-re-re-re-re-fix tests * avoid impact of invoke callback on current state --------- Co-authored-by: Fred Lefévère-Laoide <[email protected]> Co-authored-by: Fabien Lelaquais <[email protected]>
Description
Being able to broadcast variables not to all the clients but only a subset. A user variable or filter function defines this subset.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: