Skip to content

Instantly share code, notes, and snippets.

@joevandyk
Created July 16, 2011 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joevandyk/1086659 to your computer and use it in GitHub Desktop.
Save joevandyk/1086659 to your computer and use it in GitHub Desktop.
AMQP::Simple.rpc('identifier', :message => 'hello there') do
success do |result|
end
failure do |message|
end
end
AMQP::Simple.publish 'routing-key', :message => 'hello there')
AMQP::Simple.listen 'routing-key' do |message|
# something..
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment