Skip to content

realizehit/publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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