Optional
confirmOptional
jsonif true, then ChannelWrapper assumes all messages passed to publish() and sendToQueue() are plain JSON objects. These will be encoded automatically before being sent.
Optional
nameName for this channel. Used for debugging.
Optional
publishDefault publish timeout in ms. Messages not published within the given time are rejected with a timeout error.
Optional
setupA function to call whenever we reconnect to the broker (and therefore create a new underlying channel.) This function should either accept a callback, or return a Promise. See addSetup below
Generated using TypeDoc
True to create a ConfirmChannel (default). False to create a regular Channel.