Skip to main content

broadcast

AsyncMethod
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]]) -> None

Parameters

event
GatewayEvent
required
The event to broadcast
exclude
Optional
Optional list of client IDs to exclude