feat(eventsub): add basic parse tests and benchmark (#5952)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"metadata": {
|
||||
"message_id": "ecaf20f2-6b08-4a17-ba14-581130d93c95",
|
||||
"message_type": "notification",
|
||||
"message_timestamp": "2024-05-14T12:31:47.995298776Z",
|
||||
"subscription_type": "stream.online",
|
||||
"subscription_version": "1"
|
||||
},
|
||||
"payload": {
|
||||
"subscription": {
|
||||
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
|
||||
"type": "stream.online",
|
||||
"version": "1",
|
||||
"status": "enabled",
|
||||
"cost": 0,
|
||||
"condition": { "broadcaster_user_id": "1337" },
|
||||
"transport": {
|
||||
"method": "websocket",
|
||||
"session_id": "AgoQUlB8aB2SSsavWVfcs5ljnBIGY2VsbC1j"
|
||||
},
|
||||
"created_at": "2019-11-16T10:11:12.123Z"
|
||||
},
|
||||
"event": {
|
||||
"id": "9001",
|
||||
"broadcaster_user_id": "1337",
|
||||
"broadcaster_user_login": "cool_user",
|
||||
"broadcaster_user_name": "Cool_User",
|
||||
"type": "live",
|
||||
"started_at": "2020-10-11T10:11:12.123Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user