1.2.0 • Published 4 years ago

swgoharena v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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 )

})()
1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago