t
tRPC
t
tRPC
tRPC with infinite stream response
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
3/2/23, 12:26 PM
You
’ll just want to attach a listener to the docker stream and call emit
.next for each chunk
N
Nick
•
3/2/23, 12:26 PM
This is implementation details though
, it
’s really up to you to figure out
N
Nick
•
3/2/23, 12:29 PM
There
’s an example of a subscription in this example app
https://github.com/trpc/examples-next-prisma-websockets-starter/blob/main/src/server/routers/post.ts
GitHub
examples-next-prisma-websockets-starter/post.ts at main · trpc/exam...
tRPC Next
.js WebSocket Starter
. Contribute to trpc
/examples
-next
-prisma
-websockets
-starter development by creating an account on GitHub
.