pub async fn subscribe_with<S, E, R>(
    config: WebSocketConfig,
    stream: S,
    request: R,
    extension: E,
    subprotocols: ProtocolRegistry
) -> Result<UpgradedClient<S, <E as ExtensionProvider>::Extension>, Error> where
    S: WebSocketStream,
    E: ExtensionProvider,
    R: TryIntoRequest
Expand description

Execute a WebSocket client handshake on stream, attempting to negotiate the extension and a subprotocol.