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
+33
View File
@@ -1357,3 +1357,36 @@ main {
background: rgba(248, 113, 113, 0.2);
color: #f87171;
}
/* Poll indicator */
.poll-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.875rem;
background: rgba(139, 92, 246, 0.15);
border: 1px solid rgba(139, 92, 246, 0.3);
border-radius: 6px;
font-size: 0.875rem;
font-weight: 600;
color: #c4b5fd;
animation: pollPulse 2s ease-in-out infinite;
margin-right: 0.5rem;
}
.poll-indicator__icon {
font-size: 1rem;
}
.poll-indicator__text {
white-space: nowrap;
}
@keyframes pollPulse {
0%, 100% {
box-shadow: 0 0 0 rgba(139, 92, 246, 0);
}
50% {
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
}