sbx-client-ws

2.0.5 • Public • Published

sbx-client-ws


npm i --save sbx-client-ws
import Socket from 'sbx-clint-ws';

let Feeder = new Socket({
    host: {HOST},
    reconnectTimeout: 4000,
    pingInterval: 20000,
    pingTimeout: 10000,
});


Feeder.on((result) => {
        // Update ticks
        if(result.event === 'tick.update') {
            console.log(result.data)
        }
})

Readme

Keywords

none

Package Sidebar

Install

npm i sbx-client-ws

Weekly Downloads

137

Version

2.0.5

License

none

Unpacked Size

5.1 kB

Total Files

5

Last publish

Collaborators

  • v.sobix