Registry / messaging / tmm1-amqp

tmm1-amqp

JSON →
library0.6.4rbrubygemsunverified

An AMQP client implementation in Ruby using EventMachine for asynchronous messaging.

gem install tmm1-amqp
INSTALL
IMPORT
SIG · TMM1-AMQP
T
tmm1-amqp
messagingrubyv0.6.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AMQP
require 'amqp'

Connect to an AMQP broker and subscribe to a queue

require 'amqp' EventMachine.run do AMQP.connect do |connection| channel = AMQP::Channel.new(connection) queue = channel.queue("test") queue.subscribe do |payload| puts "Received: #{payload}" end end end
Debug
Known issues
gotchaRequires EventMachine, which may have compatibility issues with newer Ruby versions.
fix
Ensure EventMachine is installed and compatible with your Ruby version.
affects: >= 0.6.0
Upgrade
Version history
0.6.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Resources
tmm1-amqp — gem install tmm1-amqp · libregistry