49. Rooms and presence
Status: partly implemented. Rooms, signed seat admission, replication, interest and interpolation run in
coax/web/room/. This overview directs you to the checked implementations in chapters 86–101. Presence and lockstep remain separate trust profiles.
A room groups players under one simulation owner. Everglade clients send commands over a socket; the server steps the world and sends accepted state. An HTTP presence poll is not Everglade's simulation path.
Follow a player into a room
- Chapter 86 starts the headless server. Chapter 88 checks the API's signed ticket before assigning a seat.
- Chapter 89 queues numbered inputs and acknowledges the last accepted input.
- Chapters 91 and 92 encode state within each seat's byte budget. Chapter 97 withholds blocked and hidden players across channels.
- Chapter 93 draws remote entities from one interpolation buffer. Chapter 98 keeps the seat through a short disconnect and rejects replaced sockets.
Shared contracts and their limits
`metaverse-engine/net/profile.coax` distinguishes server authority, self-asserted presence and lockstep. The room's rm_profile selects timing, trust, durability and fairness; a presence profile cannot qualify progression as authoritative.
`metaverse-engine/session/party.coax` supplies membership, invite, roster visibility and placement rules. The API persists the party; the room applies its health-only visibility rules. A party is not a seat and outlives a room. Travel between owners uses `travel.coax`, rather than making a second room authoritative by opening another socket.
Run the contracts' checks from the repository root:
coax/bin/coax test metaverse-engine/net/profile.coax --librarycoax/bin/coax test metaverse-engine/session/party.coax --libraryThe authoritative engine is partly extracted. Commands, accepted results and replication still have Everglade-specific implementations in the room and page. Chapter 101 records that integration; these profiles do not claim that every realm uses the same networking implementation.