Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redis-messaging-manager

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-messaging-manager

Pubsub messaging library, using redis and rxjs 5

  • 1.6.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

redis-messaging-manager

Build Status npm MIT licensed code style: prettier semantic-release renovate-app badge

A super simple, instant pubsub messaging library, using

Background

redis-messaging-manager is designed to help you implement a pubsub messaging protocol between your systems services. After installing the library as a dependency, simply use the PubsubManager object provided by the library to setup a connection to a redis broker instance. The two core functions for messaging are publish and consume

Creating PubsubManager instance

  import {PubsubManager} from 'redis-messaging-manager';
  
  let messenger = new PubsubManager({
      host: 'localhost'
  });
  export default messenger;

Additional parameters can be passed to the instance, such as the broker port, and reconnect strategy (Defaults to reconnecting).

Examples for usage

Examples for using the library are provided here

Out of the box features

  • consume method returns an Rx Observable for convenient event processing
  • Server events can be subscribed to by using getServerEventStream method
  • Auto reconnect to the server is implemented in case of broker failure
  • Options to PubsubManager instance can be passed for alternative config

Extended documentation

Please check out the extended documentation for more information

Keywords

FAQs

Package last updated on 08 Jun 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc