Skip to content

Instantly share code, notes, and snippets.

@gotbadger
Created May 18, 2012 08:38
Show Gist options
  • Save gotbadger/2724025 to your computer and use it in GitHub Desktop.
Save gotbadger/2724025 to your computer and use it in GitHub Desktop.
AMQP Publisher
amqp = require 'amqp'
connection = amqp.createConnection { host: 'localhost' }
# Wait for connection to become established.
connection.on 'ready', ()->
exchange = connection.exchange 'phil-exchange'
exchange.publish '#',"hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment