[−][src]Function twitchchat::sync::connect_easy
pub fn connect_easy(name: &str, token: &str) -> Result<TcpStream>
Opens a sync TCP connection using the provided name
and token
This enables all of the Capabilities
Note
This doesn't support TLS because TlsStream isn't clonable.
Use the async version if you want a TLS wrapped connection
Example
let (nick, pass) = ANONYMOUS_LOGIN; let conn = connect_easy(&nick, &pass).unwrap();