Support empty dedicated room listings

This commit is contained in:
Alexander Sellite 2026-08-10 13:56:03 -04:00
parent b5b3cc0211
commit 6a7c7a676d
6 changed files with 28 additions and 4 deletions

View file

@ -27,13 +27,16 @@ trusting an address supplied by the game client.
{
"room_name": "Pond Friends",
"port": 7777,
"current_players": 1,
"current_players": 0,
"max_players": 8,
"game_version": "0.6.4-alpha",
"protocol_version": 3
}
```
`current_players` may be zero for an empty dedicated server. A player-hosted
room normally includes its host in this count.
The `201` response includes the public `room` and a secret `lease_token`. The host retains that
token only for the current hosting session.