Publishes a message using a routing key and a set of headers to be passed as part of message options.
The (database) ID of the aggregate type or use the const UNKNOWN_AGGREGATE_ID or MULTIPLE_AGGREGATE_IDS values.
message payload
explicitly defined message envelope values, e.g. auth token or message context
explicitly defined message options, e.g. if additional header values should be passed
OptionaleventSigning: Required<
Handles publication of messages, including the generation of the message envelope object.