Module: Kewpie/publish

Publish a message/task to a queue
Parameters:
Name Type Attributes Description
queue string The name of the queue you intend the message to reach. This will be used as the message's routing key
task Object Any `JSON.stringify`able Object. This will be serialised and sent as the message body
opts Object <optional>
A set of opts to override defaults
Properties
Name Type Description
priority number The priority of the message (defaults to 0)
expiration number The expiration time of the message in MS
delay number The number of MS the exchange should wait before publishing the message to a queue for consumption
Source:
Returns:
Type
Promise