Go web app that lets you track the state of a Cube 2: Sauerbraten game server.
Go web app that lets you track the state of a Cube 2: Sauerbraten game server.
Try it here!
Viewers subscribe to Sauerbraten server state information by opening a websocket connection. When that particular game server is not tracked yet, the extinfo server spawns a poller that periodically (every 5 seconds) requests state information from the Sauerbraten server using the extinfo package. The current state is then sent down to every viewer subscribing to that server via a hub managing publishers (game server pollers) and subscribers (websocket viewers consuming the state information).
lit-html is used to render state information in the browser.
You can view the state of unlisted servers by editing the URL (you may have to open the modified URL in a new tab).