© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
15 replies
rainrain

🚨 Realtime Broadcast Issue: Works Locally, Buffered in Production

Setup:

- Frontend: Next.js on Vercel
- Backend: Node.js API on Railway
- Supabase: Realtime broadcasts for progress updates
- Use case: Broadcasting compliance check progress (10% → 30% → 60% → 90% → 100%)

Problem:
Broadcasts are being buffered and delivered all at once in staging (which will be same issue on prod once release), but work perfectly in local development.

What Works ✅:

- Local development: Progress updates arrive in real-time (10%, 30%, 60%, etc.)
- WebSocket connection establishes successfully in both environments
- All broadcasts eventually arrive (just buffered in production)

What Doesn't Work ❌:

Staging: All broadcasts arrive at the same time at the end
Progress bar jumps from 0% to 100% instantly
WebSocket frames show all updates arriving within 42ms of each other


What I Tried:
- Run Staging env locally both backend and frontend and it works as expected however when i tried it on the deployed staging frontend and backend it wasn't working.
- Added all the necessary configs, enabled broadcast realtime, added RLS in realtime.messages
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Broadcast to realtime from server
SupabaseSSupabase / help-and-questions
4mo ago
Realtime Postgres Changes vs Broadcast
SupabaseSSupabase / help-and-questions
11mo ago
Realtime client doesn't receive broadcast messages
SupabaseSSupabase / help-and-questions
6mo ago
Realtime doesn't work locally.
SupabaseSSupabase / help-and-questions
4y ago