tRPCttRPC
Powered by
DerockD
tRPC•3y ago•
14 replies
Derock

Is it possible to only use WebSockets when necessary, otherwise use httpbatch or http?

I have an application, and on certain pages I need live data. Is there a way to only have tRPC open a websocket for subscriptions and then use another link otherwise?

I would like for the solution to disconnect from WS when all subscriptions have been ended, so no dangling WS connections.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is it possible to use tRPC with Deno over Websockets only?
MauriceMMaurice / ❓-help
7mo ago
Is It Possible to use methodOverride with createNextApiHandler?
Sami Mis'halSSami Mis'hal / ❓-help
2y ago
is it possible to use trpc without the app router?
tltlTtltl / ❓-help
17mo ago