Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata is not available to callbacks for EventSub events received via WebSocket #340

Open
alinsavix opened this issue Jan 12, 2025 · 0 comments
Labels
enhancement New feature or request EventSub

Comments

@alinsavix
Copy link

As per discussion at https://discord.com/channels/325552783787032576/785942102386540614/1328016079670480946 , the data provided to callbacks handling incoming EventSub notifications via WebSocket does not provide any way to access much of the data from the metadata key of the incoming json message. In particular, the metadata.message_timestamp and metadata.message_id fields are both useful, and not available.

Reference for incoming notification messages: https://dev.twitch.tv/docs/eventsub/websocket-reference/#notification-message

As noted in the discord thread, the similarly named fields under the subscription key are not the same thing -- in particular, the id under that key is the id for the subscription, and the created_at under that key is when the subscription was created.

Most of the other metadata fields (message_type, subscription_type, and subscription_version) are already covered, either because they never change (message_type), or because they're available in the subscription field (subscription_type and subscription_version).

Thanks!

@Teekeks Teekeks added enhancement New feature or request EventSub labels Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request EventSub
Projects
None yet
Development

No branches or pull requests

2 participants