The library for initializing the rpc connection, in conjunction with biot-core, is used for remote invocation of async / await functions.
$ git clone https://github.com/BIoTws/biot-rpc
$ npm install
$ node server
For an example on nodejs, we will use the jayson library
$ npm --save -i jayson
const jayson = require('jayson');
let stream = jayson.client.http({port:4303, headers:{'X-AUTH': 123456}});
stream.request('getMyDeviceWallets', [], (err, state) => {
if(err)
throw err;
console.log(state);
});
> node examples/example1