pub async fn connect(
        url: impl tungstenite::client::IntoClientRequest + Unpin,
    ) -> Result<Self, tungstenite::Error> {
        let (ws, _) = connect_async(url).await?;
        Ok(Self::new(ws))
    }
/// Initializes a new WebSocket Client.
/// separately.
Initializes a new WebSocket Client.
separately.
Initializes a new WebSocket Client . separately .
pub async fn connect(
        url: impl tungstenite::client::IntoClientRequest + Unpin,
    ) -> Result<Self, tungstenite::Error> {
        let (ws, _) = connect_async(url).await?;
        Ok(Self::new(ws))
    }
pub async fn connect ( url : impl tungstenite :: client :: IntoClientRequest + Unpin , ) -> Result < Self , tungstenite :: Error > { let ( ws , _ ) = connect_async ( url ) . await ? ; Ok ( Self :: new ( ws ) ) }
Initializes a new WebSocket Client.
Initializes a new WebSocket Client .
url
impl tungstenite::client::IntoClientRequest + Unpin
url
impl tungstenite::client::IntoClientRequest + Unpin