channel this queue was declared on
name of the queue
Bind the queue to an exchange
Delete the queue
Poll the queue for messages
OptionalnoAck?: booleanautomatically acknowledge messages when received
Publish a message directly to the queue
the data to be published, can be a string or an uint8array
publish properties
fulfilled when the message is enqueue on the socket, or if publish confirm is enabled when the message is confirmed by the server
Subscribe to the queue
Optionalargs?: Record<string, any>custom arguments
Optionalexclusive?: booleanif this can be the only consumer of the queue, will return an Error if there are other consumers to the queue already
OptionalnoAck?: booleanif messages are removed from the server upon delivery, or have to be acknowledged
Optionaltag?: stringtag of the consumer, will be server generated if left empty
Function to be called for each received message
Subscribe to the queue. Use consumer.messages to iterate over messages with an AsyncGenerator.
Optionalargs?: Record<string, any>custom arguments
Optionalexclusive?: booleanif this can be the only consumer of the queue, will return an Error if there are other consumers to the queue already
OptionalnoAck?: booleanif messages are removed from the server upon delivery, or have to be acknowledged
Optionaltag?: stringtag of the consumer, will be server generated if left empty
consumer.messagesDelete a binding between this queue and an exchange
Convenience class for queues