#Real-time
5 items tagged “Real-time”
Server-Sent Events Instead of WebSockets for Live Vote Counts
TIL that live vote tallies only need server-to-client push, not a full-duplex protocol — swapping a hand-rolled WebSocket setup for Server-Sent Events dropped the reconnection logic entirely and simplified the reverse proxy config.
Live Poll Results Without WebSockets: Server-Sent Events in a Node.js API
TIL that once vote writes were race-free, the results screen still felt dead until a manual refresh — switching from client polling to Server-Sent Events made results update instantly without the bidirectional complexity WebSockets would have added for a channel that only ever sends in one direction.
A Dead WebSocket in a Broadcast List Breaks the Whole Broadcast Loop
TIL that looping over every connected WebSocket client and sending a message throws on the first one that's already gone, which silently drops the update for everyone still connected after it in the list — the fix is a try/except per connection, not around the loop.
Pollarise: Building an Interactive Social Polling Platform for Real-Time Community Engagement
A scalable SaaS polling platform on Next.js, Node.js and MongoDB, built to turn opinion-sharing into a fast, social, mobile-first experience rather than a survey form.
Pollarise: A Real-Time Social Polling Platform
Building the frontend for a fast-interaction polling platform from Figma designs, with local-first updates for high-frequency voting.