Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

RoomOptions

Where a game joins a room, and the name its character wears there.

Property Type Default value Description
avatar? string undefined The registered avatar the player brings: their character wears it on every page in the room where the game names no look, or names one with playerAvatar.
connectionText? Partial<Record<ConnectionNotice, string>> undefined The game’s own sentence for any of the page’s notices about the player’s connection, such as { reconnecting: "The fire dims…" }, which useRoom’s notice reads, as does the loading screen’s line for a game over. A notice left out keeps the engine’s connectionNoticeText.
hint? JoinHint undefined What the player’s join carries for the room to read with readJoinHint, as the page’s ?hint=name:id gives it, which a room spawnite play runs reads. A room the platform hosts reads the hint the player’s link or teleport gave the seat instead.
playerName string undefined -
reconnectGiveUpSeconds? number 60 Seconds with no socket open before the page stops trying for the same character and takes a new seat, and before a try on a new seat gives up.
seat? string undefined The seat ticket the app handed the page, which a room the backend runs asks for: none outside the app.
url string undefined The room’s WebSocket address.
wire? WireFormat undefined How the room spells what it sends: binary when left out, JSON text for an agent or a person reading the socket.