Rayson is a JSON-RPC 2.0 mqtt client and mqtt server for node.js based on jayson.
$ npm install --save rayson
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 testvar server = rayson;server; // default is `json`
Consumes the api exposed by the previous example.
var rayson = ;var client = raysonclient;client; // default is `json`clientmqtt;clientmqtt;clientmqtt;clientmqtt;client;
MIT © taoyuan