TwitchIrc
Deprecated
Twitch IRC is deprecated. Prefer EventSub for real-time events. IRC remains only for event types not yet available via EventSub (e.g. watch streaks). See: https://dev.twitch.tv/docs/chat/irc-migration/
Read-only Twitch IRC client with automatic reconnection.
Twitch IRC is deprecated in favor of EventSub. This client exists solely because EventSub does not yet cover all event types (e.g. watch streaks / viewer milestones). Once Twitch adds full EventSub coverage, this class will be removed.
See: Twitch IRC Migration Guide
Usage:
@Suppress("DEPRECATION")
val irc = TwitchIrc(httpClient, config)
irc.join("channelname")
irc.connect(scope)
irc.messages.collect { msg -> /* ... */}Content copied to clipboard