mateodelnorte/servicebus — pull request #25 by ThibaultLaurens (2014-06-10 10:20:01+00:00)
Title: 0.4.7 ready - tests are ok - exhange options and publish options

It should bring a bit more flexibility when doing pub/sub with the service bus. To summarise, you can now declare your bus with custom exchange name and options like this:
bus = require('servicebus').bus({url: "myurl", exchangeName: "myexchange", exchangeOptions: {durable:false, type: "fanout", autoDelete: true}})

Another thing is when publishing a message you may want to specify contentType, deliveryMode or replyTo preperties as well. You can then do
bus.publish('my.event', {hello:'world'}, {replyTo: "my.client", contentType: "application/octet-stream", deliveryMode: 1})

The tests are passing this time, I guess we can bring it to 0.4.7.
Thank you.