Add your server
The GamingAPI network needs to know about your sever before allowing you to interact with it.Setup your game server
Your game server, regardless of how you set it up, needs to be setup to interact with the GaminAPI network. To do this use one of the following setups:This guide help you setup your local rust to interact with the GamingAPI network.
- Install uMod by following one of the many guides: https://www.corrosionhour.com/install-umod-rust-server/
- Download our GamingAPI plugin
- Install the plugin: https://www.corrosionhour.com/install-umod-plugins-rust-server/
- Download the GamingAPI extensions
- Place the extensions under <server-identity>/RustDedicated_Data/Managed
- Restart the server
Interact with your sever
Use your favorite language to interact with the game server over the GamingAPI networkimport { NatsAsyncApiClient } from '@eventgamingapi/rust';
const client = new NatsAsyncApiClient();
await client.connect();
await client.subscribeToRustServerStarted((message) => {
console.log(`Server have started`)
});