I’ve been reading this page about PubSub:
And there it says back-end services can use it to broadcast, but everything I see on that page seems to describe everything from a receiving message perspective. I don’t see any API methods for broadcasting. Is there a good sample anywhere?
I have an extension that lets broadcasters create quizzes for their viewers to play. Each viewer plays the quiz (takes the quiz) by interacting with my extension front-end panel. When the broadcaster ends the quiz, I need to broadcast the quiz results where everyone can see it.
How do I use PubSub to do this? Or is this kind of an “unsolicited” broadcast better suited for the IRC chat API using a TMI provided WebSocket By “unsolicited” I mean that the broadcast from my extension is not the result of an action occurring on a topic my extension is listening to (i.e. - subscribed to), but instead, is triggered as a result of the broadcaster pressing the button in the Live Config panel that ends the quiz,