Subscriber

class compas_eve.Subscriber[source]

Bases: object

Subscriber for a specific topic.

Parameters:
topicTopic or str

The topic to subscribe to. If a string is provided, a new topic instance will be created using the string as topic name.

transportTransport, optional

The transport to use for subscribing. If not provided, the default transport will be used.

Methods

message_received

Handler called whenever a new message is received.

subscribe

unsubscribe

Unregister the subscriber from its topic.