ms-socket.io-adapter-amqp
TypeScript icon, indicating that this package has built-in type declarations

9.0.1 • Public • Published

ms-socket.io-adapter-amqp

npm version Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i ms-socket.io-adapter-amqp

Weekly Downloads

68

Version

9.0.1

License

MIT

Unpacked Size

56.9 kB

Total Files

23

Last publish

Collaborators

  • avvs