T
tRPC

❓-help

is there a way to send a streaming response

DDerock1/13/2024
I'm not talking about batching multiple requests, but more of a one-way websocket-like channel between the server and client using HTTP streaming.
DDerock1/13/2024
GitHub
feat: add experimental support for iterators and streams by KATT · ...
Closes #4477 Closes #1853 tl;dr is that queries and mutations can return generator functions, and you can "just" use them

trpc/packages/tests/server/tupleson.test.ts
...
DDerock1/13/2024
hopefully this gets finished at somepoint it's not much, but pledged $20 to the polar.sh fund for #4477
Nnlucas1/13/2024
Yep, that's likely to come later in v11 or in v12 if it needs breaking changes Funding will definitely speed it along!

Looking for more? Join the community!

Recommended Posts
Error: Tried to access "$types.__endpoint" which is not available at runtimeHi all! I'm new here, so I hope i'm posting this in the right place. I'm trying to use tRPC using fitrpc output dates are typed as strings and not datesI'm using superjson as a transformer. When I query my data, it shows that fields that should be dateTRPC v10 to v11 - change logs locationWhere can I read the changlogs from v10 to v11? I have seen the migration guide, but no clear list tRPC won't return route with function, only JSONHey all, Why can I go to route 'test' and the 'This is a test!' is being returned, but when I try ttRPC router won't return, unless it's just json.Hey all, Why can I go to 'test' and the 'This is a test!' is being returned, but when I try to go tHow to make trpc output return strings and not datesI am **not** using superjson I would like for all of my trpc routes to return dates as strings. HowCannot read properties of undefined (reading 'input')login: trpc_1.publicProcedure.input(loginInput).mutation((opts) => __awaiter(void 0, void 0, void 0,Extending the client with "virtual" proceduresI'm hoping to write a virtual mutation which runs on the client and calls some other client-side apiDynamic Server Usage Error from RSC callsposted this on the create-t3-app server as well but not quite sure if the issue is T3 or TRPC relateNode 20, NPM: Send form values to DB with tRPC?Hey all, anyone in here with some tRPC experience? I have been going through YouTube video's and thGetting type error in v11 when trying to instantiate createTRPCQueryUtils```Type 'CreateTRPCReactBase<CreateRouterInner<RootConfig<{ ctx: object; meta: object; errorShape: DLoggerLink logging only via server logger in prodI have a logger link setup as declared in https://trpc.io/docs/client/links/loggerLink#usage ```ts