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).
Extracts a WebSocket's protocol type. The value to pass to the client when connecting. When the
connectProtocolis a singleShapewhose 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 defaultstring[](the exact set of accepted strings is unknown at compile time).