# shimo-messenger

> Insanely Fast Communication Library For Node.js Services Using Redis

Latest version **1.0.6** (published 2017-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install shimo-messenger
pnpm add shimo-messenger
yarn add shimo-messenger
bun add shimo-messenger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-07-19 |
| First published | 2015-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+11 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | TomWan |
| Maintainers | tomwan |
| Keywords | nodeJS, nommunication, process, redis |

## Links

- npm: https://www.npmjs.com/package/shimo-messenger
- Repository: https://github.com/shimohq/redis-messenger
- Issues: https://github.com/shimohq/redis-messenger/issues
- npm.io page: https://npm.io/package/shimo-messenger

## Dependencies (5)

- [debug](https://npm.io/package/debug.md) 2.2.0
- [lodash](https://npm.io/package/lodash.md) 4.17.4
- [ioredis](https://npm.io/package/ioredis.md) 3.1.1
- [bluebird](https://npm.io/package/bluebird.md) 3.5.0
- [shimo-guid](https://npm.io/package/shimo-guid.md) 1.0.2

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2017-07-19
- 1.0.5 — 2017-03-13
- 1.0.4 — 2016-06-03
- 1.0.3 — 2016-04-27
- 1.0.2 — 2016-01-06
- 1.0.1 — 2016-01-04
- 1.0.0 — 2015-12-31

## README

# shimo-messenger
Insanely Fast Communication Library For Node.js Services Using Redis

## Installation

    npm install shimo-messenger

What is shimo-messenger
------------------
shimo-messenger is a library that makes network communication via Redis dead simple and insanely fast!
It support multi responses and easy to use:

`client.send(data).then(returnArray => console.log(returnArray))`

Example:

```javascript
var messenger = require('shimo-messenger');

var client = new messenger.Speaker({
  autoConnect: true
});
var server = new messenger.Listener();
var server2 = new messenger.Listener();

server.on('give it to me', function(message, response){
  response({you: 'get 1'});
});

server2.on('give it to me', function(message, response){
  response({you: 'get 2'});
});

// Wait for redis initialize
setTimeout(function(){
  client.send('give it to me', {hello:'world'}).then(result => {
    console.log(result);
  });
}, 100);
```

Output:

```javascript
> [{'you':'got 1'}, {'you':'got 2'}]
```

---
_Source: https://npm.io/package/shimo-messenger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
