Interface WebSocketStepDefinition

The definition of a websocket rule step, which can be passed to Mockttp to define a rule.

Implementation of the step is not included in the definition classes, but instead exists in an *Impl class defined separately and used internally.

interface WebSocketStepDefinition {
    type:
        | "timeout"
        | "ws-passthrough"
        | "ws-echo"
        | "ws-listen"
        | "ws-reject"
        | "close-connection"
        | "reset-connection"
        | "delay";
    dispose(): void;
    explain(): string;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

type:
    | "timeout"
    | "ws-passthrough"
    | "ws-echo"
    | "ws-listen"
    | "ws-reject"
    | "close-connection"
    | "reset-connection"
    | "delay"

Methods