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

    Type Alias OverwriteWebSocketMethods<WebSocketClass, Location, ThisWebSocket>

    OverwriteWebSocketMethods: Overwrite<
        WebSocketClass,
        {
            addEventListener<const EventName extends keyof CommonWebSocketEventMap>(
                eventName: EventName,
                listener: WebSocketListener<
                    EventName,
                    ThisWebSocket,
                    FlipWebSocketLocation<Location>,
                    WebSocketClass,
                >,
            ): void;
            close(): Promise<void>;
            send(...args: WebSocketSendMessageParams<Location, ThisWebSocket>): void;
            sendAndWaitForReply(
                ...params: WebSocketSendAndWaitForReplyParams<Location, ThisWebSocket>,
            ): Promise<
                WebSocketLocationMessageType<
                    FlipWebSocketLocation<Location>,
                    ThisWebSocket,
                >,
            >;
        },
    >

    Takes any WebSocket class and overwrites it with some new rest vir methods and makes some existing WebSocket methods type safe.

    Type Parameters