go-twitch/eventsub/websocket/messages/handler.go

10 lines
249 B
Go

package messages
// Handler receives messages from the websocket.
//
// You will only receive TypeNotification and TypeRevocation messages,
// all other messages will be handled automatically.
type Handler interface {
Handle(msg *Message) error
}