MutateTools
ref / conversations / MutateTools
Holds a number of tools that can be used to mutate a replay state.
This object is typically created via mutate.
Methods
op
ts
op(payload: string): number;
Begins an op by recording a send op. Returns the send op identifier.
done
ts
done(op: number, result: unknown): void;
Completes an op by recording a receive op for a given send op.
reset
ts
reset([op, done]: Checkpoint): void;
Resets the replay state to a given checkpoint that was obtained previously through inspection of the replay state.