feat: add YouTube live poll support

Add backend support for YouTube live polls including:
- Poll event handling and state tracking
- New `/poll/current` endpoint for current poll data
- Server-sent events stream at `/poll/stream` for real-time updates
- Poll emitter for broadcasting poll changes to clients
This commit is contained in:
Yusuf İpek
2025-10-12 23:04:57 +03:00
parent 81d4df5ff7
commit 4a4b2407b6
8 changed files with 165 additions and 22 deletions
+5
View File
@@ -19,6 +19,11 @@ export type MessageRun = {
emojiAlt?: string;
};
export type Poll = {
id: string; // live_chat_poll_id from YouTube
active: boolean;
};
export type ChatMessage = {
id: string;
author: string;