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 ClientID/user tuple.
- Additionally, a WebSocket connection is limited to 300 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 given websocket session ID can only use one users access token. You can't connect `fred` and `bob` subscriptions authenticated using each users access token to the same WebSocket SessionID
The above may be out of date check the Subscription limits for changes
A Websocket can subscribe to 10 cost 1 subscriptions
Add another user to your socket to listen to
Last KeepAlive:
Click to Refresh Subscriptions
Subscription ID |
Topic |
Condition User ID |
Cost |
Status |
|