Skip to content

fix(server): handle req.socket events - #6204

Merged
KATT merged 10 commits into
nextfrom
issues/6193
Nov 8, 2024
Merged

KATT merged 10 commits into
nextfrom
issues/6193

Conversation

@KATT

@KATT KATT commented Nov 8, 2024

Copy link
Copy Markdown
Member

Closes #6193

🎯 Changes

We mainly tested the http subscription in fetch adapter, seems like the http.IncomingRequest (in the Next.js adapter at least?) doesn't emit 'abort', so we also listen to req.socket.on('close')

@railway-app

railway-app Bot commented Nov 8, 2024 •

Copy link
Copy Markdown

πŸš… Previously deployed to Railway in the trpc-sse-and-websockets project. Environment has been deleted.

@vercel

vercel Bot commented Nov 8, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
next-prisma-starter βœ… Ready (Inspect) Visit Preview Nov 8, 2024 5:34pm
og-image βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Nov 8, 2024 5:34pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
www ⬜️ Ignored (Inspect) Visit Preview Nov 8, 2024 5:34pm

trpc-bot
trpc-bot previously approved these changes Nov 8, 2024
@pkg-pr-new

pkg-pr-new Bot commented Nov 8, 2024 •

Copy link
Copy Markdown

Open in Stackblitz

pnpm add https://pkg.pr.new/trpc/trpc/@trpc/client@6204
pnpm add https://pkg.pr.new/trpc/trpc/@trpc/next@6204
pnpm add https://pkg.pr.new/trpc/trpc/@trpc/server@6204
pnpm add https://pkg.pr.new/trpc/trpc/@trpc/react-query@6204

commit: f1db7d9

@github-actions

github-actions Bot commented Nov 9, 2024

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 9, 2024

This branch was successfully deployed

5 active (1 outdated) deployments
Preview – next-prisma-starter β€” f1db7d93 Deployed Nov 8, 2024 by vercel[bot]
Preview – examples-todomvc β€” f1db7d93 Deployed Nov 8, 2024 by vercel[bot]
Preview – trpc-next-app-dir β€” f1db7d93 Deployed Nov 8, 2024 by vercel[bot]
Preview – og-image β€” f1db7d93 Deployed Nov 8, 2024 by vercel[bot]
trpc-pr-6204 β€” f1db7d93 Deployed Nov 8, 2024 by railway-app[bot]
Preview – www β€” f15cb547 Deployed Nov 8, 2024 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: SSE Subscription Never Aborts

2 participants