Set the message expiration time in milliseconds
Always serialize messages as JSON. This will make the publish method always serialize the message as JSON before sending it to the broker. The subscribe method will always deserialize the message as JSON before passing it to the callback.
Optional
autoSerialize: booleanSend a message to the queue. Unless .json(false) has been called the message will be serialized as JSON before being sent to the broker.
Purge the queue. This will remove all messages from the queue.
Set up the topology declared in the chain. All exchanges / queues / bindings will be created.
Skip setup of the topology declared in the chain. Normally all queues / exchanges / bindings will be created each time subscribe / publish is called. This method will skip that step.
Optional
options: boolean | SkipSetupOptionsUnbind an exchange from the exchange / queue.
Optional
bindingArguments: BindingArgumentsOptional
bindingArguments: BindingArguments
Set the publish to use confirm mode. This will make the publish method return a promise that will resolve when the message has been confirmed as received by the broker.