feat(eventsub): add basic parse tests and benchmark (#5952)
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"metadata": {
|
||||
"message_id": "8466103d-5c96-4a92-b6ae-8a1a5ab9d22b",
|
||||
"message_type": "notification",
|
||||
"message_timestamp": "2024-05-14T12:31:47.995298776Z",
|
||||
"subscription_type": "channel.chat.notification",
|
||||
"subscription_version": "1"
|
||||
},
|
||||
"payload": {
|
||||
"subscription": {
|
||||
"id": "2237f256-1b83-4ec9-956e-c3578925e8e6",
|
||||
"status": "enabled",
|
||||
"type": "channel.chat.notification",
|
||||
"version": "1",
|
||||
"condition": { "broadcaster_user_id": "67931625", "user_id": "27620241" },
|
||||
"transport": {
|
||||
"method": "websocket",
|
||||
"session_id": "AgoQuf4yiyFuTd64mlIG4zbSOxIGY2VsbC1j"
|
||||
},
|
||||
"created_at": "2023-11-19T22:08:49.127052362Z",
|
||||
"cost": 0
|
||||
},
|
||||
"event": {
|
||||
"broadcaster_user_id": "67931625",
|
||||
"broadcaster_user_login": "amar",
|
||||
"broadcaster_user_name": "Amar",
|
||||
"chatter_user_id": "101572475",
|
||||
"chatter_user_login": "justinfan",
|
||||
"chatter_user_name": "justinfan",
|
||||
"chatter_is_anonymous": false,
|
||||
"color": "#FA6E02",
|
||||
"badges": [
|
||||
{ "set_id": "moderator", "id": "1", "info": "" },
|
||||
{ "set_id": "subscriber", "id": "48", "info": "58" },
|
||||
{ "set_id": "partner", "id": "1", "info": "" }
|
||||
],
|
||||
"system_message": "justinfan subscribed at Tier 1. They've subscribed for 58 months!",
|
||||
"message_id": "aaa15585-0f43-4c32-8c48-56d58e9567a7",
|
||||
"message": {
|
||||
"text": "GIB MIR DEN POKAL",
|
||||
"fragments": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "GIB MIR DEN POKAL",
|
||||
"cheermote": null,
|
||||
"emote": null,
|
||||
"mention": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"notice_type": "resub",
|
||||
"sub": null,
|
||||
"resub": {
|
||||
"cumulative_months": 58,
|
||||
"duration_months": 0,
|
||||
"streak_months": null,
|
||||
"sub_tier": "1000",
|
||||
"is_prime": false,
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user