Skip to content

BIoTws/biot-wsclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biot-wsclient

Websocket client-plugin for biot-wsocket parse server data, supports async / await.



How to install


install dependencies

$ npm --save -i https://github.com/BIoTws/biot-wsclient.git
$ npm --save -i ws

Example client



const wsclient = require('biot-wsclient');
const ws = require('ws');


function Start() {
    let client = new ws('ws://127.0.0.1:3303');

    client.on('open', async () => {
        let stream = wsclient(client);


        let result = await stream.send({
            name: 'getMyDeviceWallets', args: []
        });


        console.log(result);
    });

}

Start();

terminal

> node client

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published