Skip to content

Kiln API / kiln / Recorder

Class: Recorder ​

Records a session. Create it before Startup (before app.boot() or app.start()).

Constructors ​

Constructor ​

ts
new Recorder(app, options?): Recorder;

Parameters ​

ParameterType
appApp
optionsRecorderOptions

Returns ​

Recorder

Properties ​

checkEvery ​

ts
readonly checkEvery: number;

checkPrecision ​

ts
readonly checkPrecision: number;

Accessors ​

frame ​

Get Signature ​

ts
get frame(): number;

Frames recorded so far.

Returns ​

number


recording ​

Get Signature ​

ts
get recording(): boolean;

True until stop().

Returns ​

boolean

Methods ​

note() ​

ts
note(kind, data): void;

Notes a side-channel event; it applies before the next frame, as it did live. Plugins call this.

Parameters ​

ParameterType
kindstring
dataunknown

Returns ​

void


addNote() ​

ts
addNote(text): void;

Adds a line to the recording's notes.

Parameters ​

ParameterType
textstring

Returns ​

void


take() ​

ts
take(): Recording;

The recording so far. Recording continues.

Returns ​

Recording


stop() ​

ts
stop(): Recording;

Stops recording and returns the recording.

Returns ​

Recording