Skip to content

Seat

acted: Set<number>

the action ids this page sent that the hub took (the last 128): after a reconnect a page’s new action can arrive before the ones it sends again, so “at or below the highest” is not enough to call one a repeat


answers: Map<number, { error?: string; ok: boolean; }>

the last answers this seat was sent, by its own action id: a repeat (sent again after a reconnect) gets the same answer


exactAt: number

when stateBytes was last counted in full (near the limit that happens at most once a second, see sized)


guest: boolean


hidden: boolean


id: string


kept: boolean

restored from a snapshot after a restart: the first welcome says kept (the page carries on in the same match)


key: string


lastAct: number


optional moved?: Map<string, { t: number; v: number; }>

fields with a top speed: the last value let through and its sample time (kept when the field is removed, so null then a far value is no teleport)


name: string


offlineAt: number


page: string

the page’s own id (the relay makes one per page): a reconnect of the same page keeps its action count and open actions


prof: Record<string, unknown> | null

the person’s saved profile once loaded (null = not loaded, or saving is off)


profAt: number


profDirty: boolean


profLoad: Promise<Record<string, unknown> | null> | null


profV: number

the save format number of the profile as loaded


session: Session | null


since: number


stalled: boolean

the host’s game loop stopped reporting (a frozen tab) while its socket stayed open


state: Record<string, unknown>


stateBytes: number

JSON size of state, kept up to date by each write (an exact count near the limit and every 256 writes)


viewer: boolean

came in with a view-only link: may move its own state (a cursor), never act, send effects or host