New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

resolve-bus

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-bus

This package serves as a bus for sending events with a driver specifying where to send events.

  • 0.0.10-alpha.c8baa0e9
  • Source
  • npm
  • Socket score

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

resolve-bus

This package serves as a bus for sending events with a driver specifying where to send events. The following drivers are available for this package:

  • resolve-bus-memory - to emit events using memory
  • resolve-bus-rabbitmq - to emit events using RabbitMQ
  • resolve-bus-zmq - to emit events using ZeroMQ

Usage

import createBus from 'resolve-bus';
import createDriver from 'resolve-bus-memory';

const driver = createDriver();
const bus = createBus({ driver });

const event = {
    type: 'userCreated',
    payload: {
        email: 'test@user.com'
    }
};

bus.onEvent(['userCreated'], event =>
    console.log('event emitted', event)
);

bus.emitEvent(event);

API

  • emitEvent
  • onEvent

Keywords

FAQs

Package last updated on 04 Aug 2017

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