Method: Ears.connection
- Defined in:
- lib/ears.rb
permalink .connection ⇒ Bunny::Session
The global RabbitMQ connection used by Ears.
26 27 28 29 30 31 |
# File 'lib/ears.rb', line 26 def connection @connection ||= Bunny .new(configuration.rabbitmq_url, **connection_config) .tap { |conn| conn.start } end |