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

10 lines
249 B
Go
Raw Permalink Normal View History

2024-03-05 12:14:18 -05:00
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
}