[][src]Function twitchchat::connect_easy_no_tls

pub async fn connect_easy_no_tls<'_, '_>(
    name: &'_ str,
    token: &'_ str
) -> Result<TcpStream>

Connect to Twitch without TLS. Using the provided name, token.

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 (name, token) = ANONYMOUS_LOGIN;
let mut stream = twitchchat::connect_easy_no_tls(&name, &token).await?;