Incomplete interface to interact with wormax api and game servers
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
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();
})
});
});