Skip to content

five-on-it / apps/client/src/ui/telemetry / Telemetry

Interface: Telemetry ​

Defined in: apps/client/src/ui/telemetry.ts:93

The telemetry of a page.

Methods ​

crash() ​

crash(crash): void

Defined in: apps/client/src/ui/telemetry.ts:95

Reports a crash (with the player's consent to crash reports; the same one once).

Parameters ​

crash ​

Crash

Returns ​

void


event() ​

event(name, data): void

Defined in: apps/client/src/ui/telemetry.ts:97

Queues a usage event (with the player's consent to statistics).

Parameters ​

name ​

UsageName

data ​

Record<string, number | string | boolean>

Returns ​

void


flush() ​

flush(leaving?): void

Defined in: apps/client/src/ui/telemetry.ts:103

Sends the usage events queued (at once; on leaving the page, by beacon).

Parameters ​

leaving? ​

boolean

Returns ​

void


renderer() ​

renderer(renderer): void

Defined in: apps/client/src/ui/telemetry.ts:101

The renderer the page draws with (gpu, software), for the crashes.

Parameters ​

renderer ​

string

Returns ​

void


where() ​

where(where): void

Defined in: apps/client/src/ui/telemetry.ts:99

What the page is doing now, for the crashes: menu, game:main-riverbend.

Parameters ​

where ​

string

Returns ​

void