tRPCttRPC
Powered by
Hemant RajputH
tRPC•2y ago•
4 replies
Hemant Rajput

WebSocket Subscriptions in Next.js 14 Using `fetchRequestHandler` and `createTRPCReact`

Hello everyone,

Does anyone have a working example of using WebSockets/subscriptions with
fetchRequestHandler
fetchRequestHandler
on Next.js 14? I haven't been able to get subscriptions working with my current approach using
fetchRequestHandler
fetchRequestHandler
and
createTRPCReact
createTRPCReact
.

Any help would be greatly appreciated!

Thank you!
Solution
You can use the httpSubscriptionLink, but it won't work well on serverless
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How do I setup subscriptions with websockets in Next.js 14 app router?
FinnFFinn / ❓-help
3y ago
tRPC over WebSocket with Next.js and NextAuth
Tamás SoósTTamás Soós / ❓-help
3y ago
Using tRPC in Next.js Middleware
FinnFFinn / ❓-help
3y ago