Bug: SSE Subscription Never Aborts When Client Disconnects
Bug: SSE Subscription Never Aborts When Client Disconnects: a task in LegoFlow-SWE (Harbor dataset). When using tRPC's Server-Sent Events (SSE) subscriptions with the Node.js HTTP adapter (especially in Next.js), the subscription does not abort when the client disconnects. The AbortSignal that is…
The task
When using tRPC's Server-Sent Events (SSE) subscriptions with the Node.js HTTP adapter (especially in Next.js), the subscription does not abort when the client disconnects. The `AbortSignal` that is passed to the subscription handler (e.g., `opts.signal`) never fires, so server-side async generators keep running…
Part of Lego-X/LegoFlow-SWE.