Hi all. I’m trying to make a twitch extension, but I’m new to web development, so it’s pretty difficult getting started. I don’t really understand how the front end communicates with the back end. I’ve read up on signed JWTs and PubSub, but there is a lot of lingering confusion.
Question 1:
If my back end is hosted somewhere does that mean that it is code that is always running, waiting to receive a message from PubSub?
2:
My current short term goal is to make a button in live_config.html change something in viewer.html. Does this actually require PubSub or an EBS? What’s the easiest way to communicate a button press? And if the answer is that I don’t need the back-end here, then what is the EBS actually used for?
3:
Is there example code somewhere of an actually completed extension that I could look through?, because I’m not good enough at this yet to do much with starter code when I find it.
4:
Having read the docs on pubsub, I still don’t really get how to use it. It would be positively radiant if someone has some code lying around that they could post as an example.
Thanks so much if you answer any of my questions. Code snippets are most appreciated