moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 509 forks source link

amqp set host:port? #534

Closed fotoKrille closed 8 years ago

fotoKrille commented 8 years ago

How can i set host and port?

var pubsubSettings = { type: 'amqp', json: false, amqp: require('amqp'), exchange: 'amq.topic' //localhost:32771 };

mcollina commented 8 years ago

Put them into a "client" property. It will be passed through to createConnection in the amqp library.