Interface IRecorderInternal

Interface that describes a recorder which collects input/output messages. Used for virtual device call/response recordings and debugging low level communication layer.

interface IRecorder {
    recordInput: (event: object) => void;
    recordOutput: (action: object) => void;
}

Properties

recordInput: (event: object) => void

Record an incoming input message. Triggered on input event from the low level communication layer.

Type declaration

    • (event: object): void
    • Parameters

      • event: object

        Raw input event, formatted in JSON.

      Returns void

recordOutput: (action: object) => void

Record an outgoing output message. Triggered when an Action object is sent to the low level communication layer.

Type declaration

    • (action: object): void
    • Parameters

      • action: object

        Raw output event, formatted in JSON.

      Returns void