This example demonstrates how to connect to, create subscriptions and recieve data from EventSub WebSockets
It will just "dumb log" an EventSub notification.
It'll use Implicit auth to obtain a token to use
From the RFC - https://discuss.dev.twitch.tv/t/rfc-0016-eventsub-websockets/32652
- When using a user access token, the developer may create up to 3 WebSocket connections per user.
- Additionally, a WebSocket connection is limited to 100 subscriptions.
- However when using a user access token, the default value of max_total_cost will be 10 rather than the
default of 10,000 for an application access token.
A Websocket can subscribe to 10 cost 1 subscriptions
Add another user to your socket to listen to
Click to Refresh Subscriptions
||Condition User ID