mockttp
    Preparing search index...

    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"
            | "wait-for-request-body";
        dispose(): void;
        explain(): string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    type:
        | "timeout"
        | "ws-passthrough"
        | "ws-echo"
        | "ws-listen"
        | "ws-reject"
        | "close-connection"
        | "reset-connection"
        | "delay"
        | "wait-for-request-body"