The server was calling exit() immediately when a room didn't exist, which caused the SSE connection to open and then close right away. This triggered EventSource to reconnect in a loop. Now the server keeps the connection open and sends keepalives even for rooms that don't exist yet. This is the correct SSE behavior - maintain the connection and stream data when it becomes available. Fixes the "connection established then immediately errors" issue seen in diagnostic tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
6.8 KiB
6.8 KiB