realizehit-publisher
v0.0.2
Published
realizehit publisher
Downloads
2
Readme
publisher
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