0.0.1 • Published 6 years ago

redis-one-time-messenger v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Build Status Coverage Status MIT license

one time message base on redis

redis-one-time-message makes you can receive message through redis in a disributed environment.

Install

npm i redis-one-time-message

Usage

In your one process:

const message = new RedisOneTimeMessenger({ redisConfig })
const response = await message.waitForResponse('my-unique-channal')
// response is 'tom'

In your another process:

const message = new RedisOneTimeMessenger({ redisConfig })
message.publish('my-unique-channel', 'tom')

Setting travis and coveralls badges

  1. Sign in to travis and activate the build for your project.
  2. Sign in to coveralls and activate the build for your project.
  3. Replace {{github-user-name}}/{{github-app-name}} with your repo details like: "ospatil/generator-node-typescript".