rest-vir - v2.2.0
    Preparing search index...

    Type Alias MockWebSocketOptions

    Options accepted by the MockWebSocket constructor's fourth argument.

    type MockWebSocketOptions = {
        preventImmediateOpen?: boolean;
    }
    Index

    Properties

    preventImmediateOpen?: boolean

    When true, the constructed mock will stay in the Connecting state until the test calls instance.open() explicitly. Defaults to false (auto-opens on next tick).