Commanded v0.19.1 Commanded.PubSub behaviour View Source
Pub/sub behaviour for use by Commanded to subcribe to and broadcast messages.
Link to this section Summary
Functions
Broadcasts message on given topic.
Return an optional supervisor spec for pub/sub.
List tracked PIDs for a given topic.
Get the configured pub/sub adapter.
Subscribes the caller to the PubSub adapter's topic.
Track the current process under the given topic
, uniquely identified by
key
.
Callbacks
Broadcasts message on given topic.
Return an optional supervisor spec for pub/sub.
List tracked PIDs for a given topic.
Subscribes the caller to the PubSub adapter's topic.
Track the current process under the given topic
, uniquely identified by
key
.
Link to this section Functions
Broadcasts message on given topic.
Return an optional supervisor spec for pub/sub.
List tracked PIDs for a given topic.
Get the configured pub/sub adapter.
Defaults to a local pub/sub, restricted to running on a single node.
Subscribes the caller to the PubSub adapter's topic.
Track the current process under the given topic
, uniquely identified by
key
.
Link to this section Callbacks
Broadcasts message on given topic.
topic
- The topic to broadcast to, ie:"users:123"
message
- The payload of the broadcast
Return an optional supervisor spec for pub/sub.
List tracked PIDs for a given topic.
Subscribes the caller to the PubSub adapter's topic.
Track the current process under the given topic
, uniquely identified by
key
.