broadcast • AI Agent SDK

broadcast: Broadcast an event to all connected clients.

broadcast

Async

Method

</div>

This is a method of the GatewayProtocol class in the protocols module.

Broadcast an event to all connected clients.

Signature

python
async def broadcast(event: GatewayEvent, exclude: Optional[List[str]]) -> None

Parameters

ParamField GatewayEvent

The event to broadcast

ParamField Optional

Optional list of client IDs to exclude

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1461