gwitch

Types

pub type LoginCredentials {
  Static(username: String, password: String)
}

Constructors

  • Static(username: String, password: String)

Functions

pub fn connect(
  channel: String,
  creds: Option(LoginCredentials),
) -> Subject(InternalMessage(Msg))
pub fn get_twitch_subj() -> Subject(InternalMessage(Msg))
pub fn join_channel(
  subj: Subject(InternalMessage(Msg)),
  channel: String,
) -> Nil
pub fn login(
  subj: Subject(InternalMessage(Msg)),
  creds: Option(LoginCredentials),
) -> Nil
Search Document