Documentation ¶
Overview ¶
Package ircon maintains a connection to the Twitch IRC service.
Index ¶
Constants ¶
View Source
const DefaultCaps = "twitch.tv/tags twitch.tv/commands"
DefaultCaps is the default set of capabilities. The twitch.tv/membership capability is omitted for performance reasons and its general lack of usefulness in most scenarios.
View Source
const DefaultServer = "wss://irc-ws.chat.twitch.tv/"
DefaultServer is the default Twitch "IRC" server used by e.g. web chat
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
A Handler receives events from IRCon.
type IRCon ¶
type IRCon struct { // Caps contains the set of capabilities that are requested on connect. // Advanced users can specify their own set. Caps string Handler Handler // contains filtered or unexported fields }
An IRCon is an automatically reconnecting IRC connection.
func (*IRCon) Background ¶
Background runs the connection in a background goroutine until ctx is done.
Click to show internal directories.
Click to hide internal directories.