Skip to content

Regrip API / session/replay/jsonlMock / createJsonlMockConnection

Function: createJsonlMockConnection() ​

createJsonlMockConnection(source): object

Defined in: packages/core/src/session/replay/jsonlMock.ts:246

In-memory connection for replaying redacted JSONL exports through a session.

Parameters ​

source ​

string | JsonlReplay

Returns ​

object

connection ​

connection: SmartCubeTransportConnection

events ​

events: readonly SmartCubeEvent[]

identity ​

identity: JsonlMockIdentity

sentCommands ​

sentCommands: SmartCubeCommand[]

emit() ​

emit(event): void

Parameters ​

event ​

SmartCubeEvent

Returns ​

void

replay() ​

replay(options?): void

Parameters ​

options? ​

ReplayOptions = {}

Returns ​

void