Skip to content

KeptReplay beta ​

Interface of @v12-engine/client

ts
export interface KeptReplay

A replay kept in this browser: when and what it is, its size and its data

Members ​

at ​

ts
at: number;

Milliseconds since 1970, and seconds of the game it lasts

compressed ​

ts
compressed: boolean;

Whether data is gzipped

data ​

ts
data: Blob;

The replay, as JSON, gzipped where the browser can

game ​

ts
game: string;

The game the replay is of, by id (Rules.id)

id ​

ts
id: string;

Unique id the replay is kept under

name ​

ts
name: string;

The scene it was played in, by name, and the game

seconds ​

ts
seconds: number;

How long the game lasts, in seconds of play

size ​

ts
size: number;

Bytes as kept