TwitchEventSub::HttpServer::TwitchHandler
Inherits HTTP::Handler < Reference < Object
The TwitchHandler encapsulates the logic necessary to handle callbacks
from Twitch. This class should be subclassed with handle_TYPE methods
defined for each type of Twitch notification that will be handled.
For example, to monitor channel follow events, the subscription type
from Twitch is channel.follow. The corresponding method to handle this
event type would be handle_channel_follow.
Constructors
Instance methods
Compare the signature passed as a param to the HMAC-SHA256 signature
that is calculated from the message contents to ensure that they
match.
TODO: Make this method look at the HMAC encoding technique that Twitch
indicates was used in the signature. i.e.
sha256=0036753bef53872d35c7f24643abaacd95c554d371d563df37eb9d721c457892
and dynamically use the same one. That way, if Twitch changes to a
different algorithm, the system will not need any changes to use the new
one.