Skip to main content

publish_to_channel

AsyncMethod
This is a method of the PushChannelProtocol class in the protocols module.
Publish an event to all subscribers of a channel.

Signature

Parameters

str
required
Target channel
GatewayEvent
required
The event to deliver
Optional
Optional client IDs to skip

Returns

int
Number of clients the event was sent to

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1337