Get a message from a given queue.
amqp_get(conn, queue, no_ack = FALSE)
conn | An object returned by |
---|---|
queue | The name of a queue. |
no_ack | When |
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.
amqp_consume
for handling messages with a callback.