Skip to content

qie.discardOutboundMessages

Signature: qie.discardOutboundMessages()

Returns: void

Discards all messages in the outbound queue while the channel is stopped.

Note

This function throws an exception if the channel is not stopped when called.

Parameters

None

Example

/* Typically used from within a scheduled script, that is scheduled to run before channel starts.
 Throws exception if the channel is running */
qie.discardOutboundMessages(); // Clears outbound messages that should not be processed