Publishes a message to an exchange with a given routing key.
amqp_publish(conn, body, exchange = "", routing_key = "", mandatory = FALSE, immediate = FALSE, properties = NULL)
| conn | An object returned by |
|---|---|
| body | The message to send, either a string or a |
| exchange | The exchange to route the message through. |
| routing_key | The routing key for the message. For the default exchange, this is the name of a queue. |
| mandatory | When |
| immediate | When |
| properties | Message properties created with
|