pub async fn connect_with_retry(
    stream_config: StreamConfig,
    retry_config: RetryConfig,
) -> Result<RetryStream, StreamError<WsClientError>> {
    let inner: RetryStream =
        ReconnectStream::connect_with_options(stream_config.into(), retry_config.into()).await?;
    Ok(inner)
}
/// Connect to bilibili live room with auto retry.
///
/// # Errors
/// Returns an error when websocket connection fails.
Connect to bilibili live room with auto retry.
Connect to bilibili live room with auto retry .
pub async fn connect_with_retry(
    stream_config: StreamConfig,
    retry_config: RetryConfig,
) -> Result<RetryStream, StreamError<WsClientError>> {
    let inner: RetryStream =
        ReconnectStream::connect_with_options(stream_config.into(), retry_config.into()).await?;
    Ok(inner)
}
pub async fn connect_with_retry ( stream_config : StreamConfig , retry_config : RetryConfig , ) -> Result < RetryStream , StreamError < WsClientError > > { let inner : RetryStream = ReconnectStream :: connect_with_options ( stream_config . into ( ) , retry_config . into ( ) ) . await ? ; Ok ( inner ) }
Connect to bilibili live room with auto retry.
Connect to bilibili live room with auto retry .
stream_config
StreamConfig
retry_config
RetryConfig
stream_config
StreamConfig
retry_config
RetryConfig
errors
Returns an error when websocket connection fails.
Returns an error when websocket connection fails .