Files
James Pine f443063b0e fix HttpTransport to multiplex subscriptions over a single EventSource
Every useNormalizedQuery with a unique filter opened its own EventSource
to /events. Browsers cap HTTP/1.1 connections at 6 per origin, so the UI
exhausted the connection pool and RPC POSTs stalled indefinitely. The
daemon's /events stream is already a broadcast of every event, so we
share one EventSource across all subscribers and fan out in the client.

This only affected the web prod build (single origin); dev worked
because vite and sd-server were on different ports, and Tauri worked
because it uses IPC for subscriptions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 00:35:04 -07:00
..