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
async def broadcast(event: GatewayEvent, exclude: Optional[List[str]]) -> NoneParameters
ParamField
GatewayEventThe event to broadcast
ParamField
OptionalOptional list of client IDs to exclude
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 1461