ms-socket.io-adapter-amqp
v9.0.1
Published
Socket.io adapter for amqp using '@microfleet/transport-amqp'
Downloads
320
Readme
ms-socket.io-adapter-amqp
How to use
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);
Overview
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.
API
AdapterFactory.fromOptions(options)
options
: @microfleet/transport-amqp options
Options that has no effect:
exchangeArgs.autoDelete
(true
)exchangeArgs.type
(direct
)defaultQueueOpts.autoDelete
(true
)defaultQueueOpts.exclusive
(true
)
Changelog
- Initial Release: 01.07.2016
License
MIT