rayson
Rayson is a JSON-RPC 2.0 mqtt client and mqtt server for node.js based on jayson.
Installation
$ npm install --save rayson
Server
jason-mqtt server played as a mqtt consumer, so it need a mqtt server start first. We can use mosca.
Exposes an array of functions which retrieves and returns data.
var rayson = ; var moscaServer = 'mosca'; // start mosca server for test var server = rayson; server; // default is `json`
Client
Consumes the api exposed by the previous example.
var rayson = ; var client = raysonclient; client; // default is `json` clientmqtt; clientmqtt; clientmqtt; clientmqtt; client;
License
MIT © taoyuan