Skip to content

DevClientMessage

DevClientMessage = { t: "auth"; token: string; } | { id: string; t: "tables.list"; } | { id: string; t: "tables.watch"; } | { id: string; t: "tables.unwatch"; } | { id: string; t: "table.watch"; table: string; } | { id: string; t: "table.unwatch"; table: string; } | { from: number; id: string; t: "table.log"; table: string; to?: number; } | { id: string; seq: number; t: "table.at"; table: string; } | { id: string; seq?: number; t: "table.fork"; table: string; } | { id: string; seq?: number; t: "table.export"; table: string; } | { id: string; t: "sessions.list"; }

Defined in: devtools/protocol.ts:98

{ t: "auth"; token: string; }


{ id: string; t: "tables.list"; }


{ id: string; t: "tables.watch"; }

Push tables whenever the table list changes, until tables.unwatch.


{ id: string; t: "tables.unwatch"; }


{ id: string; t: "table.watch"; table: string; }

Result DevTableDetail; then push table.update after commits (throttled).


{ id: string; t: "table.unwatch"; table: string; }


{ from: number; id: string; t: "table.log"; table: string; to?: number; }

Log entries from <= seq <= to (default: to the end), from the store.


{ id: string; seq: number; t: "table.at"; table: string; }

Time travel: a replayed copy at seq. Never touches the live table.


{ id: string; seq?: number; t: "table.fork"; table: string; }

Fork a dev table from seq (default: the latest). Refused in production.


{ id: string; seq?: number; t: "table.export"; table: string; }

Export a fixture up to seq (default: the latest). Player ids become p0, p1...


{ id: string; t: "sessions.list"; }