emit
Emits an administrative channel message through native delivery, history, receive-lock, and message-count behavior.
Function
Synopsis
channel:emit( message [, options] )
Arguments
string message- Valid UTF-8 text without embedded NUL bytes.
table or nil options- Optional settings. The exact options table accepts one field:
Field Type Description no_headerboolean Omits the usual [channel]prefix.
Unknown option fields are rejected.
Returns
Nothing.
Raises
mux.unavailable.checkingduring@lua/check.mux.channel.invalidif the channel handle is stale.mux.arg.invalidfor invalid UTF-8, embedded NUL bytes, or invalid options.
Example
channel:emit("The scheduled maintenance begins now.", { no_header = true })