[][src]Function twitchchat::sync::connect

pub fn connect(user_config: &UserConfig) -> Result<(impl Read, impl Write)>

Opens a sync TCP connection using the provided UserConfig

Note

This doesn't support TLS because TlsStream isn't clonable.

Use the async version if you want a TLS wrapped connection

Example

let user_config = UserConfig::builder().anonymous().build().unwrap();
let (read, write) = connect(&user_config).unwrap();