Stream.online event with EventSub and WebSockets

Hi! I can’t uderstand how to subscribe to stream.online event using EventSub with websocket in my nodejs app. I didn’t get it - do I need specific user permission to watch he goes online? Docs say authorization for this event isn’t required, but Im still getting “invalid transport and auth combination” probably bc I use app access token but I don’t understand why I supposed to use user access token. Its so messed up

No

That suggest you have tried to use an app access/client crentials token with your websocket, which isn’t allowed.

Websockets are generally used for frontend applications that cann’t recieved HTTPS POST requests due to firewall, or well running in the browser.

If your websocket runs in the browser then you would be leaking your generated token, which doesn’t belong to the user, or your client secret if you are generating on the fly.

So this “error” attempts to protect a developer from making a bad mistake.

A post was split to a new topic: I can’t uderstand how to subscribe to stream.online event using EventSub

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.