API

class aio_pubsub.interfaces.PubSub

Main interface for implementation

publish(channel: str, message: Any)

Publish a message to channel

subscribe(channel: str)

Subscribe to one or many channels and return a Subscriber object

class aio_pubsub.interfaces.Subscriber

Subscriber interface