Skip to content

qie.discardInboundMessages

Signature: qie.discardInboundMessages()

Returns: void

Discards all messages in the inbound 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.discardInboundMessages(); // Clears inbound messages that should not be processed