Skip to content

Taipy.gui.broadcast callback

Invoke a callback for every client.

This callback gets invoked for every client connected to the application with the appropriate State instance. You can then perform client-specific tasks, such as updating the state variable reflected in the user interface.

Parameters:

Name Type Description Default
gui Gui

The current Gui instance.

required
callback Callable

The user-defined function to be invoked.
The first parameter of this function must be a State object representing the client for which it is invoked.
The other parameters should reflect the ones provided in the args collection.

required
args Optional[Union[Tuple, List]]

The parameters to send to callback, if any.

None