Socket
Socket
Sign inDemoInstall

multines

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

multines

Multi-process nes backend, turn nes into a fully scalable solution


Version published
Maintainers
1
Weekly downloads
18
increased by63.64%

Weekly downloads

Readme

Source

multines  Build Status

Multi-process nes backend, turn nes into a fully scalable solution.

multines connect multiple instances of Hapi and nes through an external pub/sub broker, currently only redis and mongodb are supported.

multines is powered by MQEmitter, MQEmitterRedis and MQEmitterMongodb.

Important note: this library needs nodejs 8 or greater.

Install

npm i multines --save

Example

See the examples folder.

API

Options

  • [type] - 'redis' or 'mongodb', if nothing is specified it will use the in-memory MQEmitter
  • [mq] - an instance of MQEmitter, if you do not want to leverage the embedded constructor

The options object is passed through to MQEmitterRedis and MQEmitterMongodb, check their documentation for broker-specific config.

server.subscriptionFar(path, options)

Wrap nes server.subscription(path, options) adding the ability to receive messages from the MQEmitter-based broker.

The subscription supported is slightly different from nes, as it allows wildcards.

server.publishFar(path, message)

Publish a message to the MQEmitter-based broker.

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT

Keywords

FAQs

Last updated on 16 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc