# mmque-client-js

> "The queue mmque client write by javascript."

Latest version **1.0.9** (published 2018-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install mmque-client-js
pnpm add mmque-client-js
yarn add mmque-client-js
bun add mmque-client-js
```

## 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.9 |
| Published | 2018-02-07 |
| First published | 2018-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gary Zhang |
| Maintainers | eaves |
| Keywords | mmque, js, client |

## Links

- npm: https://www.npmjs.com/package/mmque-client-js
- Repository: https://github.com/zdy23216340/mmque-client-js
- Homepage: https://github.com/zdy23216340/mmque-client-js#readme
- Issues: https://github.com/zdy23216340/mmque-client-js/issues
- npm.io page: https://npm.io/package/mmque-client-js

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.9 (latest) — 2018-02-07
- 1.0.7 — 2018-02-07
- 1.0.6 — 2018-02-07
- 1.0.5 — 2018-02-07
- 1.0.4 — 2018-02-06
- 1.0.3 — 2018-02-06
- 1.0.2 — 2018-02-06
- 1.0.1 — 2018-02-02
- 1.0.0 — 2018-02-02

## README

## Mmque client for javascript

## Install 
> npm install --save mmque-client-js

## Usage
    
     const Mmque = require("mmque-client-js/app");
     const option = {
        host : "127.0.0.1",
        port : 8087
     }
     
     let client = New Mmque(option);
     
     let errorCount = 0;
     client.Error(err => {
         errorCount ++;
         if(errorCount > 5){
             client = new Mmque(option)
             // You can reconnect by your self or use client.Reconnect();
         }
     });
     
     client.Receive(data=>{
         console.log(data) //-> {ID:string,Msg:string,Status:string};
     });
     
     client.Pull({Channal:"test"});
     client.NewVersion({Channal:"test1"}).then(version => client.Push({Channal:"test2",Msg:string,Version:version}));
     client.Ack({Channal:"test1",Version:5});

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