Overview
TheEvent class is a producer for event-driven syncing. Use this class when you want to handle the outer syncing logic yourself and manually publish signals as events occur.
Constructor
Configuration object containing broker connection details. Must include:
url: Broker URLsub_topic: Subscription topicpub_topic: Publishing topicgroup: Consumer groupauto_offset_reset: Offset reset policy (default: “latest”)
Methods
publish()
Signal dataclass containing the data to publish. Must include:
state: List of float values representing the signal statevalence: Optional float valuescore: Optional integer valueemb_inp: Optional integer value
Properties
config
Gets or sets the broker configuration.sync
Boolean flag that controls whether the event producer is active. Set toFalse to disable publishing.