Hemant RajputH
tRPC2y 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
on Next.js 14? I haven't been able to get subscriptions working with my current approach using
fetchRequestHandler
and
createTRPCReact
.

Any help would be greatly appreciated!

Thank you!
Solution
You can use the httpSubscriptionLink, but it won't work well on serverless
Was this page helpful?