socket.io emitter for use with RabbitMQ & other AMQP services (written to be used with socket.io-amqp).
var io = require('socket.io-amqp-emitter')('amqp://localhost');
setInterval(function(){
io.emit('time', new Date);
}, 5000);
socket.io-amqp-emitter
is virtually the same as socket.io-emitter.
uri
: String likeamqp://localhost
to connect to AMQP/RMQ server, MANDATORYopts.prefix
: Prefix that will be applied to all queues, exchanges, and messages used by socket.io-amqp-emitter (same as adapter)
Specifies a specific room
that you want to emit to.
Specifies a specific namespace that you want to emit to.
Fix tests - they're still the original socket.io-emitter
code so don't expect them to work.
MIT