Skip to content

Instantly share code, notes, and snippets.

@luto
Created April 19, 2013 08:35
Show Gist options
  • Save luto/5418961 to your computer and use it in GitHub Desktop.
Save luto/5418961 to your computer and use it in GitHub Desktop.
var amqp = require('amqp');
var connection = amqp.createConnection(
{
host: 'messages.streams.xenim.de',
vhost: "xsn_hls",
login: "shownotes",
password: nconf.get("xsn_pw")
}
);
connection.on('ready',
function ()
{
console.log("ready");
connection.exchange('shownotes',
{
passive: true
},
function (exc)
{
console.log("publish");
exc.publish('shownotes.padcreated', 'foo', {},
function () { console.log(arguments); });
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment