publish
client:publish({PARAMS})
Since: Dev Builds Only
The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.
Sends a message. PARAMS is an object style table with the following keys:
subject- required string; the name of the subject to which to send the messagepayload- required string; the message to sendheaders- optional NATS headersawait_ack- optional wait for server acknowledgement (default: true)
In case await_ack is set to true, publish returns an acknowledgment with the following values:
stream: name of stream the message was published tosequence: sequence number the message was published indomain: domain the message was published todeplicate: true if the published message was determined to be a duplicate, false otherwisevalue: used only when published against stream with counters enabled