Documentation ¶
Index ¶
Constants ¶
View Source
const ( TagsCapability = "twitch.tv/tags" CommandsCapability = "twitch.tv/commands" MembershipCapability = "twitch.tv/membership" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(username string, accessToken string, opts *ClientOpts) *Client
Create a new client for connecting to Twitch's WS servers
func (*Client) JoinChannel ¶
Join a new channel to recieve messages for
func (*Client) LeaveChannel ¶
Leave a channel so that you no longer recieve that channels messages
func (*Client) ReadMessages ¶
Read chat messages from the channel.
This should be run as a goroutine.
Pass in an output and errors channel to ingest the incoming chat messages and errors
func (*Client) StopReadingMessages ¶
func (c *Client) StopReadingMessages()
type ClientOpts ¶
Click to show internal directories.
Click to hide internal directories.