npm i ms-socket.io-adapter-amqp -S
const AdapterFactory = require('ms-socket.io-adapter-amqp');
const adapter = AdapterFactory.fromOptions(/* options object */);
const socketIO = require('socket.io')(3000);
socketIO.adapter(adapter);
By running socket.io with the ms-socket.io-adapter-amqp
adapter
you can run multiple socket.io instances in different processes or
servers that can all broadcast and emit events to and from each other.
options
: @microfleet/transport-amqp options
Options that has no effect:
exchangeArgs.autoDelete
(true
)exchangeArgs.type
(direct
)defaultQueueOpts.autoDelete
(true
)defaultQueueOpts.exclusive
(true
)
- Initial Release: 01.07.2016
MIT