EchoSubscriber

class compas_eve.EchoSubscriber[source]

Bases: Subscriber

Simple subscriber that prints received messages on the console (ie. stdout).

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.

Methods

echo

Print received messages to the console.

Inherited Methods

message_received

Handler called whenever a new message is received.

subscribe

unsubscribe

Unregister the subscriber from its topic.