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

    Type Alias MockHostWebSocketConstructorOptions<Context>

    type MockHostWebSocketConstructorOptions<Context> = {
        createHostContext: MockCreateHostContext<Context> | undefined;
        webSocketImplementations: Readonly<
            Record<
                string,
                | MockWebSocketListenerImplementations<WebSocketDefinition, Context>
                | undefined,
            >,
        >;
    }

    Type Parameters

    • Context
    Index

    Properties

    createHostContext: MockCreateHostContext<Context> | undefined

    Raw mock-host createHostContext callback. The constructor handles the missing-callback case (treats it as {context: undefined}) and forwards the per-event params for you.

    webSocketImplementations: Readonly<
        Record<
            string,
            | MockWebSocketListenerImplementations<WebSocketDefinition, Context>
            | undefined,
        >,
    >