Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

realizehit-publisher

realizehit16GPL-3.00.0.2

realizehit publisher

realizehit, api, client

readme

publisher Build Status

realizehit publisher

This modules purpose is to be used from within your app in case you don't want to use server-api for publishing your payloads.

Probably you might want to use realizehit/realizehit instead.

Usage

Run as NPM module

npm i -g realizehit-publisher
var Publisher = require( 'realizehit-publisher' )

var publisher = new Publisher( 'redis://redis-host:6379' )

// Publish a payload into { foo: 'bar' } subscription
publisher.publish(
    { foo: 'bar' },
    'Hello world'
)

Contributing

Running with node

npm install
npm test