Modules§
- identity_
token - The identity token is the only carrier of a session’s name. The hub mints
signed tokens (
issHUB_ISSUER, EdDSA, verified by the relay against the hub’s JWKS); a client that cannot reach the hub mints the same shape unsigned (issSELF_ISSUER,algUNSIGNED_ALG, empty signature) and the relay treats the name as unverified. Keep the claim shape in sync withmanabrew-hub/src/auth/token.rs. - state_
delta
Structs§
- Chat
Message - Deck
- Draft
Config - Engine
Play Stats - Game
Outcome Report - Engine slots (
player-N), never usernames: the relay holds the seat map and does not take a name from a client. - IceServer
- An ICE server, shaped like the
RTCIceServerdictionary. - Identity
Proof - Plane
Quality Report - One end’s account of one direct-plane attempt. Every field is a client claim.
- Player
Deck Info - Player
Info - Resume
Room Request - Room
Info - Room
Player Info - Sealed
Config - Seat
Transport Report - How one seat’s game traffic travelled, reported by the room’s engine host.
- Transport
Endpoint - A peer’s addressing information for the direct data plane.
- Transport
Member - One room member’s endpoint.
usernameis relay-attested, never client supplied.
Enums§
- Chat
Scope - Client
Message - Client
Platform - Engine
Gate - Why the client is or is not running the engine in its own browser. The relay never acts on it; it exists so the hosted-node population can be told apart from the browsers that chose not to use it.
- Engine
Kind - Game
Format - Local
Game Kind - A game running on the player’s own machine, which the relay never sees.
- Room
Status - Server
Message
Constants§
- CHAT_
HISTORY_ MAX_ AGE_ MS - CHAT_
HISTORY_ MAX_ MESSAGES - CHAT_
MESSAGE_ MAX_ CHARS - CHAT_
MIN_ INTERVAL_ MS - DEFAULT_
RECONNECT_ TIMEOUT_ S - FEATURES
- FEATURE_
CARD_ COSMETICS - FEATURE_
CHAT - Names
ClientMessage::SendChatinAuthResult::features. - FEATURE_
GAME_ OUTCOME - Names
ClientMessage::ReportGameOutcomeinAuthResult::features. - FEATURE_
LIMITED_ DRAFT_ CLOCKS - FEATURE_
LIMITED_ SESSIONS - FEATURE_
LIMITED_ SESSION_ RECOVERY - FEATURE_
LOCAL_ GAME - Names
ClientMessage::SetLocalGameinAuthResult::features. - FEATURE_
PEER_ SIGNAL - Names
ClientMessage::SignalPeerinAuthResult::features. - FEATURE_
PLANE_ QUALITY - Names
ClientMessage::ReportPlaneQualityinAuthResult::features. - FEATURE_
ROOM_ INVITES - Names
ClientMessage::InviteToRoominAuthResult::features. - FEATURE_
ROOM_ TRANSPORT - Names
ClientMessage::AnnounceTransportinAuthResult::features. - MAX_
CANDIDATE_ PAIR_ BYTES - Longest
candidate_pairthe relay records. - MAX_
FATAL_ MESSAGE_ CHARS - Longest
fatal_messagethe relay keeps. - MAX_
PLANE_ MS - Longest duration the relay records; ten minutes.
- MAX_
SIGNAL_ BYTES - Largest signalling blob the relay forwards.
- PLANE_
OUTCOMES - Outcomes the relay records; anything else is dropped.
- PLANE_
OUTCOME_ CONNECTED - PLANE_
OUTCOME_ FAILED - PLANE_
OUTCOME_ TIMEOUT - PLANE_
PHASE_ MEASURED - PLANE_
PHASE_ SETTLED - PROTOCOL_
VERSION - TRANSPORT_
KIND_ WEBRTC - Names for
TransportEndpoint::kinds. - TRANSPORT_
WEBRTC - A browser pair on an
RTCDataChannel.