Skip to main content

PushChannelProtocol

Defined in the protocols module.
AI Agent Protocol for channel/topic-based push messaging. Channels group clients by interest. Messages published to a channel are delivered to all subscribed clients.

Methods

add_channel()

Create a named channel.

remove_channel()

Delete a channel and unsubscribe all clients.

get_channel()

Get channel metadata.

list_channels()

List all active channel names.

subscribe_client()

Subscribe a client to a channel.

unsubscribe_client()

Unsubscribe a client from a channel.

get_subscribers()

List client IDs subscribed to a channel.

get_client_channels()

List channels a client is subscribed to.

publish_to_channel()

Publish an event to all subscribers of a channel.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 1276