Skip to content

BIoTws/biot-rpc

Repository files navigation

biot-rpc

The library for initializing the rpc connection, in conjunction with biot-core, is used for remote invocation of async / await functions.



How to install


downloads project files

$ git clone https://github.com/BIoTws/biot-rpc

install dependencies

$ npm install

run server

$ node server

Example client

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);
});

terminal

> node examples/example1

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published