Get a message from a given queue.

amqp_get(conn, queue, no_ack = FALSE)

Arguments

conn

An object returned by amqp_connect.

queue

The name of a queue.

no_ack

When TRUE, tell the server not to expect that messages will be acknowledged.

Value

A string containing the message, or a zero-length character vector if there is no message in the queue. Messages may have additional properties (such as the content type) attached to them as attributes.

See also

amqp_consume for handling messages with a callback.