Architecture between broadcaster and viewers

### Authentication

Signed JWT (Twitch or EBS JWTs are allowed)

You can use the the Twitch JWT from onAuthorised

You are right than an EBS is a web accessible “dedicated server”, and it has to remain under your control, you cannot give it to the broadcaster to keep on their side, as in order to generate an “EBS JWT” you need the Extension Secret.

And as per the Developer Agreement/TOS you need to keep your secrets, secret. And they are not secret if they live in an application on someone elses computer as apposed to an EBS you control.

Additionally instead of going straight to the “Send Extensions Pubsub Message” you can use the Javascript Helper send function

send

twitch.ext.send: function(target: String, contentType: String, message: Object)twitch.ext.send: function(target: String, contentType: String, message: String)

This function can be called by the front end to send directly to PubSub. It uses the Twitch-provided JWT for broadcasters, to allow broadcasters to send a broadcast (channel) or whisper message. Broadcasters cannot send to global.

Scroll to send

1 Like