You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can subscribe to a Component A calling its register_subscription method
For each published message (via data protocol), this Component A will call subscription_message (TBD) on all components which registered themselves previously. "Data" is the content of the data message. Conversation_id is the same. If a component is not reachable, it is removed from the list of subscribers.
subscription_message will call handle_subscription_message with an artificial Data message.
This allows to subscribe to events on other computers without creating a dedicated data protocol network.
The text was updated successfully, but these errors were encountered:
Reasoning:
Due to the different architectures of the data and control protocol networks, you might want to subscribe to a publishing actor, which you cannot reach via the data protocol.
We can, however use the control protocol to subscribe and to publish messages. (managing the subscribers manually)
This reflects the experience from pymeasure/leco-protocol#2 (comment) that it is quite simple to use the control protocol only. PUB-SUB does not save on bandwidth anyway.
Idea:
register_subscription
methodsubscription_message
(TBD) on all components which registered themselves previously. "Data" is the content of the data message. Conversation_id is the same. If a component is not reachable, it is removed from the list of subscribers.subscription_message
will callhandle_subscription_message
with an artificial Data message.This allows to subscribe to events on other computers without creating a dedicated data protocol network.
The text was updated successfully, but these errors were encountered: