Skip to content

five-on-it / apps/server/src/level-files / LevelFile

Interface: LevelFile ​

Defined in: apps/server/src/level-files.ts:33

A level's JSON as the server serves it.

Properties ​

gzip? ​

optional gzip?: Promise<Buffer<ArrayBufferLike>>

Defined in: apps/server/src/level-files.ts:41

The JSON gzipped, made the first time a client accepts it.


hash ​

hash: string

Defined in: apps/server/src/level-files.ts:35

The SHA-256 of LevelFile.json (hex).


json ​

json: Buffer

Defined in: apps/server/src/level-files.ts:37

The JSON.


text ​

text: string

Defined in: apps/server/src/level-files.ts:39

The same JSON as text: what a welcome that carries the level splices in (encodeWelcome).