New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@coding-blocks/whisperer

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coding-blocks/whisperer

Event sourcing library which makes use of rabbitmq.

latest
npmnpm
Version
0.0.7
Version published
Weekly downloads
3
200%
Maintainers
6
Weekly downloads
 
Created
Source

Whisperer

An event sourcing over AMQP library using STOMP.

Getting Started

  • Whisperer uses AMQP backends with STOMP plugin such as RabbitMQ
  • Enable STOMP plugin in RabbitMQ using rabbitmq-plugins enable rabbitmq_stomp
  • Enable STOMP web plugin in RabbitMQ to enable websocket interation rabbitmq-plugins enable rabbitmq_web_stomp

Installation

  • If using npm npm install @coding-blocks/whisperer
  • If using yarn yarn add @coding-blocks/whisperer

Usage

  • Create a whisperer object
import Whisperer from "@coding-blocks/whisperer";

const whisperer = new Whisperer({
  host: '127.0.0.1',
  port: 15674,
  username: 'guest',
  password: 'guest'
});

await whisperer.init()
  • To Subscribe to topics
  whisperer.on('oneauth_user.created', (msg, frame) => {
    console.log("listener 2: <created>", msg)
    frame.ack()
  })
  • To emit messages
  whisperer.emit('oneauth_user.created', {
    body: {
      data: 'some create message'
    }
  })

FAQs

Package last updated on 14 Sep 2020

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