feat(eventsub): add basic parse tests and benchmark (#5952)
This commit is contained in:
+75
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"metadata": {
|
||||
"message_id": "ae24c14e-2e34-4d78-99b0-9c5586a47cd9",
|
||||
"message_type": "notification",
|
||||
"message_timestamp": "2024-05-14T12:31:47.995298776Z",
|
||||
"subscription_type": "channel.chat.notification",
|
||||
"subscription_version": "1"
|
||||
},
|
||||
"payload": {
|
||||
"subscription": {
|
||||
"id": "dc1a3cfc-a930-4972-bf9e-0ffc4e7a8996",
|
||||
"status": "enabled",
|
||||
"type": "channel.chat.notification",
|
||||
"version": "1",
|
||||
"condition": { "broadcaster_user_id": "1971641", "user_id": "2914196" },
|
||||
"transport": {
|
||||
"method": "websocket",
|
||||
"session_id": "AgoQOtgGkFvXRlSkij343CndhIGY2VsbC1h"
|
||||
},
|
||||
"created_at": "2023-10-06T18:04:38.807682738Z",
|
||||
"cost": 0
|
||||
},
|
||||
"event": {
|
||||
"broadcaster_user_id": "1971641",
|
||||
"broadcaster_user_login": "streamer",
|
||||
"broadcaster_user_name": "streamer",
|
||||
"chatter_user_id": "49912639",
|
||||
"chatter_user_login": "viewer23",
|
||||
"chatter_user_name": "viewer23",
|
||||
"chatter_is_anonymous": false,
|
||||
"color": "",
|
||||
"badges": [],
|
||||
"system_message": "viewer23 subscribed at Tier 1. They've subscribed for 10 months!",
|
||||
"message_id": "d62235c8-47ff-a4f4--84e8-5a29a65a9c03",
|
||||
"message": { "text": "", "fragments": [] },
|
||||
"notice_type": "resub",
|
||||
"sub": null,
|
||||
"resub": {
|
||||
"cumulative_months": 10,
|
||||
"duration_months": 0,
|
||||
"streak_months": null,
|
||||
"sub_tier": "1000",
|
||||
"is_gift": false,
|
||||
"gifter_is_anonymous": null,
|
||||
"gifter_user_id": null,
|
||||
"gifter_user_name": null,
|
||||
"gifter_user_login": null
|
||||
},
|
||||
"sub_gift": null,
|
||||
"community_sub_gift": null,
|
||||
"gift_paid_upgrade": null,
|
||||
"prime_paid_upgrade": null,
|
||||
"pay_it_forward": null,
|
||||
"raid": null,
|
||||
"unraid": null,
|
||||
"announcement": null,
|
||||
"bits_badge_tier": null,
|
||||
"charity_donation": null,
|
||||
"shared_chat_sub": null,
|
||||
"shared_chat_resub": null,
|
||||
"shared_chat_sub_gift": null,
|
||||
"shared_chat_community_sub_gift": null,
|
||||
"shared_chat_gift_paid_upgrade": null,
|
||||
"shared_chat_prime_paid_upgrade": null,
|
||||
"shared_chat_pay_it_forward": null,
|
||||
"shared_chat_raid": null,
|
||||
"shared_chat_announcement": null,
|
||||
"source_broadcaster_user_id": null,
|
||||
"source_broadcaster_user_login": null,
|
||||
"source_broadcaster_user_name": null,
|
||||
"source_message_id": null,
|
||||
"source_badges": null
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user