LobbyState
Canonical representation of a multiplayer lobby.
LobbyState
Canonical representation of a multiplayer lobby.
Properties
lobbyId
lobbyId: stringPermanent id for the lobby used by the backend.
code
code: stringShort shareable code a friend can type to join.
hostId
hostId: stringPlayer id for the current host.
players
players: { userId: string; name: string;}[]Current roster with ids + display names.
maxPlayers
maxPlayers: numberMax capacity configured at creation time.
status
status: "waiting" | "playing" | "finished"Lifecycle stage for the lobby.