[][src]Function twitchchat::connect_no_tls

pub async fn connect_no_tls<'_>(config: &'_ UserConfig) -> Result<TcpStream>

Connect to Twitch without TLS. Using the provided UserConfig.

This registers with the connection before returning it.

To connect using TLS:

enable one of:

  • tokio_rustls
  • tokio_native_tls

and then use the respective:

Example

let user_config = UserConfig::builder().anonymous().build()?;
let mut stream = twitchchat::connect_no_tls(&user_config).await?;