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

    Type Alias WebSocketConnectProtocolType<ThisWebSocket>

    WebSocketConnectProtocolType: ThisWebSocket extends NoParam
        ? DefaultWebSocketProtocol
        : Extract<ThisWebSocket, WebSocketDefinition>["connectProtocol"] extends infer Requirement
            ? Requirement extends Shape
                ? IsNever<Extract<Requirement["runtimeType"], string>> extends true
                    ? DefaultWebSocketProtocol
                    : (undefined | null) extends Requirement["runtimeType"]
                        ? Extract<Requirement["runtimeType"], string>[] | undefined
                        : Extract<Requirement["runtimeType"], string>[]
                : Requirement extends RegExp
                    ? string[]
                    : Requirement extends ReadonlyArray<unknown>
                        ? string[]
                        : DefaultWebSocketProtocol
            : DefaultWebSocketProtocol

    Extracts a WebSocket's protocol type. The value to pass to the client when connecting. When the connectProtocol is a single Shape whose runtime type narrows to a string union, that union is preserved as the array element type. RegExp requirements and array-of-requirement requirements widen to the default string[] (the exact set of accepted strings is unknown at compile time).

    Type Parameters