View Source TwitchEventSub behaviour (hello_twitch_eventsub v0.1.4)

The behaviour and implementation of EventSub.

Example implementation

defmodule ExampleHandler do
  use TwitchEventSub

  @impl TwitchEventSub
  def handle_event("channel.follow", event) do
    # Do something with a follow.
  end
end

Summary

Callbacks

Handle events from Twitch EventSub.

Callbacks

Link to this callback

handle_event(type, event)

View Source
@callback handle_event(type :: String.t(), event :: map()) :: any()

Handle events from Twitch EventSub.