JWT token in broadcaster scope

No

Yes.

I do this for one of my extensions, I wrote a custom system:

  • User Downloads App from my EBS Website
  • User Copies/pastes a connection key from the extension config panel on Twitch into the App
  • App uses connection key to connect to my EBS
  • App sends data to EBS with conn key and conn key is used to validate and send to the (right channel) Twitch PubSub.

A given Twitch User can only have one active Connection Key.

Essentially the same principal as how Stream Keys work.

EBS are generally web accessible this isn’t possible or advisable to advice a user to make their Desktop Computer Web accessible but depends what you are doing.

TLDR: You will need a Relay Server.

Desktop App ↔ EBS → Twitch PubSub

(Arrows denote connection directions)

Something utilizing Sockets to create a persistent bidirection communication works, thats if you need to send data from your EBS down the the user’s application, including but not limited to Application updates