rest-vir - v2.2.0
    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.

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

    Properties

    Properties

    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.