Skip to content

1-alex98/tachyon-client

 
 

Repository files navigation

Tachyon Client

Client API for interfacing with Beyond All Reason's Teiserver via the Tachyon protocol

Example

(async () => {
    const client = new TachyonClient({
        host: "server2.beyondallreason.info",
        port: 8202,
        verbose: true
    });

    await client.connect();

    const { token } = await client.request("c.auth.get_token", { email: "[email protected]", password: "greatpassword" });

    await client.request("c.auth.login", { token, lobby_name: "my_client", lobby_version: "1", lobby_hash: "123" });

    const { lobbies } = await client.request("c.lobby.query", { query: {} });

    console.log(lobbies[0].map_name);
})();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.4%
  • JavaScript 0.6%