Inspirel banner

Programming Distributed Systems with YAMI4

7.2.5 Subscribe

The "subscribe" command allows the client to express his interest in messages that match the given list of tags. The subscription is where tag wildcards are allowed, which enables multi-way hierarchical tag matching for message routing.

In order to execute the "subscribe" command, the client has to send the following message:

Object name: comma-separated list of tags, wildcards are allowed.

Message name: "subscribe".

Message content: string field named "destination_object" describing the intended name of the object that will receive updates for this subscription.

If the subscription is successful, the broker replies with an empty parameters object.