# plasmon-node

> message bus api for bridging clients communications into central bus.

Latest version **0.0.1** (published 2017-10-10) · 0 weekly downloads

## Install

```sh
npm install plasmon-node
pnpm add plasmon-node
yarn add plasmon-node
bun add plasmon-node
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-10-10 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zbyzhengzong |

## Links

- npm: https://www.npmjs.com/package/plasmon-node
- npm.io page: https://npm.io/package/plasmon-node

## Dependencies (4)

- [ffi](https://npm.io/package/ffi.md) ^2.2.0
- [ref](https://npm.io/package/ref.md) ^1.3.4
- [ref-array](https://npm.io/package/ref-array.md) ^1.2.0
- [ref-struct](https://npm.io/package/ref-struct.md) ^1.1.0

## Recent versions

- 0.0.1 (latest) — 2017-10-10

## README

# MessagingNode for osx

message bus api for bridging clients communications into central bus.

## API doc

##### * node environment
    node -v
    v8.2.1
##### * dependency of node.js/api: plasmon-osx
    require("plasmon-osx")
##### * npm basement
    npm install

#### api usage 
###### before formal usage
    //require a kernal dependency
    var fino = require("plasmon-osx/lib/Kernal")
    //set Client from kernal as universe param
    var Client =  fino.Client

###### create a client
    //client as an oms module instance
    Client client = new Client("oms","1"); 

###### publish a topic messages supported by message bus protocols
    //message from direct string 
    client.publish("heartbeat","8=PLASMON.1.09=635=HB10=042")

###### subscribe a topic messages
    //use callback function directlly handle message.it's automatically done in multi-thread and asyc with no block 
    //subscribe a message
    client.subscribe("order","Account=mike",function (message) {
        // handle message
        console.log("sub message is :" + message)
    })
###### query a topic messages
    //query a message
     client.query("order","Account=mike",function (m) {
      // handle message
         console.log("query message is :" + m)
     });

###### query and subscribe a topic messages
     //query & sub a message
     client.queryAndSubscribe("order","Account=mike AND Symbol=IBM",function (m) {
         console.log("querysub message is :" + m)
     })

######  cache-server is needed
######  nats environment is needed
######  redis environment is needed
#### feedback and report an issue
 send at : zbyzhengzong@outlook.com

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