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

    Type Alias MockHostWebSocket

    The minimal webSocket interface that a mock WebSocket implementation can call into to send messages back to the connected client or close the connection.

    @rest-vir/api

    type MockHostWebSocket = {
        close: () => void;
        readyState: CommonWebSocketState;
        send: (message: unknown) => void;
    }
    Index
    close: () => void

    Close the WebSocket connection.

    send: (message: unknown) => void

    Send a message from the mock host back to the connected client. Equivalent to webSocket.send(...) on the host side.