0.0.2 • Published 10 years ago

realizehit-publisher v0.0.2

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
10 years ago

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