Mocky Balboa API Reference
    Preparing search index...

    Interface WaitForRequestOptions

    interface WaitForRequestOptions {
        timeout?: number;
        type?: RouteType;
    }
    Index

    Properties

    Properties

    timeout?: number

    Timeout duration in milliseconds for waiting for a request to be received from the WebSocket server

    type?: RouteType

    Determines where to expect the request to be executed from

    • server-only - The request will only be received if it originated from the server.
    • client-only - The request will only be received if it originated from the client.
    • both - The request will be received regardless of whether it originated from the server or client. The request returned is the first request received.
    "both"