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/remmelgas/biot-rpc
> npm install
> ./testnetify.sh
> 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});
stream.request('getMyDeviceWallets', function(err, state) {
if(err) {
throw err;
}
console.log(state.result);
});
> node example1