Optionalpriority: numberOptionallimit: numberReadonlybroadcastThe broadcasting direction for a topic.
A message published to the topic will always be delivered first to handlers
registered on the bus where publish() is called.
Then, if the direction is:
children: the message is also propagated to all child buses recursivelyparent: the message is also propagated to the immediate parent busA topic broadcasts to children by default.
ReadonlydisplayA human-readable name for the topic, useful for debugging and logging.
ReadonlymodeWhether the topic allows multiple subscriptions or only a single subscription.
multicast: the topic can have multiple subscribersunicast: the topic can have at most one subscriberA topic is multicast by default.
A specialized topic that allows only a single subscription per message bus hierarchy.
Once a subscription exists anywhere in the hierarchy (root bus and all its children), attempting to subscribe again for the same topic will throw an error.
Separate message bus hierarchies can each have their own subscription.