Expand description
Presence relay client — the live transport for shared worlds.
Built against presence-wire-v0.1: connects to a
WebSocket relay (wss://<relay>/thread/:worldId), sends the local player’s
pose, and forwards other travelers’ poses into PresenceState. Runs its
socket on a background thread and talks to the render loop over channels, so
the frame never blocks and a missing/unreachable relay simply degrades to
solo (the world keeps running). Ready to connect the instant the relay
deploys; until then it logs and stays solo.
Structs§
- Presence
Client - Handle to the presence relay connection.
- Traveler
Hello - A traveler’s announced identity (from
welcome.occupants[]or ajoin), handed back byPresenceClient::drainso the browser can fetch their descriptor and render “them” instead of a placeholder.