1.2.0 • Published 4 years ago
swgoharena v1.2.0
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 )
})()