
var starsky = require('..');

setInterval(function () {
  starsky.publish('starsky.test', {
    subject: 'test message'
  });
}, 1000);

starsky.connect();

var starsky = require('..');

starsky.configure(__dirname + '/config.yml');

setInterval(function () {
  starsky.publish('starsky.test', {
    subject: 'test message'
  }, confirm);
}, 1000);

function confirm (err) {
  if (err) console.error(err.message);
}

starsky.connect();

Add confirm callback to example
Add confirm callback to example
