swgoharena

1.2.0 • Public • Published

Websocket client for arena.shittybots.me

Usage

(async function main () {

    //Require client class
    const Client = require('swgoharena')

    //Init a new client with name and host
    const client = new Client({ 
        name : "My arena monitor #1",
        host : "http://arena.shittybots.me:1234/"
    })

    //Connect client (promise)
    await client.connect()

    //Example allycode query (promise)
    let allycode = 282392964
    let result = await client.get(allycode)

    console.log( 'result of', allycode, '=>', result )

})()

Readme

Keywords

none

Package Sidebar

Install

npm i swgoharena

Weekly Downloads

2

Version

1.2.0

License

ISC

Unpacked Size

4.49 kB

Total Files

3

Last publish

Collaborators

  • r3volved