To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorServer-Named Destinations
AMQP brokers allow you to create queues that are named by the server. Here's
how you do it with message_driver.
- Background
-
- Given
- I am connected to the broker
- Scenarios
-
- Creating a server-named queue
-
I expect my destination to have the queue name given to it by the server
- When
-
I execute the following code:
destination = MessageDriver::Broker.dynamic_destination("", exclusive: true) expect(destination.name).to_not be_empty
- Then
- I expect to have no errors
- sending and receiving messages through a server-named queue
-
- Given
-
the following broker configuration:
MessageDriver::Broker.define do |b| b.destination :my_queue, "my_queue", exclusive: true end
- When
-
I execute the following code:
publish(:my_queue, "server-named queue message")
- Then
-
I expect to find 1 message on :my_queue with:
body server-named queue message
Last published almost 7 years ago by soupmatt.