[−][src]Function twitchchat::native_tls::connect_easy
pub async fn connect_easy<'_, '_>(
name: &'_ str,
token: &'_ str
) -> Result<TlsStream<TcpStream>>
Connect to Twitch using TLS via native_tls. Using the provided name
, token
.
This registers with the connection before returning it.
Example
let (name, token) = ANONYMOUS_LOGIN; let mut stream = twitchchat::native_tls::connect_easy(&name, &token).await?;