Skip to content

Fully implemented node.js backend API for receiving webhook calls from Twitch. Originally developed for a streaming graphic design company.

License

Notifications You must be signed in to change notification settings

nicholas-long/twitch-webhook-callbacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

twitch-webhook-callbacks

Fully implemented node.js backend API for receiving webhook calls from Twitch. Originally developed for a graphic design company.

Twitch EventSub Webhook Reference: https://dev.twitch.tv/docs/eventsub/handling-webhook-events/

implementing and using

  • run this program as API server to handle webhooks from Twitch EventSub API webhook API
  • run HTTPs proxy server to forward HTTPs traffic to this local HTTP server
    • example shell command to forward HTTP and HTTPS ports 80 and 443 to local port 3000 with caddy:
      sudo caddy reverse-proxy --to :3000 --from webhooks.yourdomain.com
  • subscribe to webhooks for an event on Twitch: https://dev.twitch.tv/docs/api/reference/#create-eventsub-subscription
    • proper access required
  • webhook APIs are called by Twitch when events occur. if valid response code is not received, or the server is down, Twitch will cache the message for some time and attempt to retry sending it.

About

Fully implemented node.js backend API for receiving webhook calls from Twitch. Originally developed for a streaming graphic design company.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published