Skip to content

five-on-it / apps/server/src/debug-runs / DebugRuns

Interface: DebugRuns ​

Defined in: apps/server/src/debug-runs.ts:66

The debug runs of one server.

Methods ​

join() ​

join(ask): DebugSeat | { refused: "full" | "rooms" | "runs" | "no-room"; }

Defined in: apps/server/src/debug-runs.ts:72

A seat for a connection (opening the run's room on the first), or why there is none: no such run or seat (no-room), or a room the admission refuses to open (runs at the server's cap of runs, rooms at a cap of rooms it was given, else full).

Parameters ​

ask ​

DebugRunAsk

Returns ​

DebugSeat | { refused: "full" | "rooms" | "runs" | "no-room"; }


result() ​

result(run): { debug?: boolean; forfeit?: boolean; missionHash: string; outcome: "complete" | "failed" | "abandoned" | "won" | "draw"; runId: string; seats: object[]; seconds: number; winner?: string; } | undefined

Defined in: apps/server/src/debug-runs.ts:74

A debug run's result once it ended, by the run's id.

Parameters ​

run ​

string

Returns ​

{ debug?: boolean; forfeit?: boolean; missionHash: string; outcome: "complete" | "failed" | "abandoned" | "won" | "draw"; runId: string; seats: object[]; seconds: number; winner?: string; } | undefined