pub async fn connect<R>(request: R) -> Result<WebSocket, SocketError> where
    R: IntoClientRequest + Unpin + Debug
Expand description

Connect asynchronously to a WebSocket server.