An open API service indexing awesome lists of open source software.

https://github.com/abcxff/wormax-client

Incomplete interface to interact with wormax.io api and game servers
https://github.com/abcxff/wormax-client

api headless websocket wormax

Last synced: about 1 year ago
JSON representation

Incomplete interface to interact with wormax.io api and game servers

Awesome Lists containing this project

README

          

# wormax-client
Incomplete interface to interact with [wormax](https://wormax.io) api and game servers

### Contributions

This project is no longer being maintained. If you make any advancements in reversing the wormax client or find bugs, pull requests and issues are welcome

### Example Usage:

```js

const SocketClient = require('./socket')
const APIClient = require('./api');

const client = new APIClient('default', { lang: 'en', party: '' })

client.recieveInitCookies()
.then(() => client.getServersByRegion('US'))
.then((servers) => client.getSpawnData(servers[0].key, 'LB Bot'))
.then((data) => {
const ws = new SocketClient(data, client.cookies);

ws.once('accept', () => {
ws.enter();

ws.once('leaderboard', (data) => {
console.log('Retrieved Leaderboard', data)
ws.close();
})
});
});
```