infinite streaming response with tRPC?

I want to create a tRPC endpoint which calls to the docker log API (https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerLogs). This API can return an infinite stream of data (when setting follow=true) to send data in real time when there's a new log. I am not sure how to send back this streaming data to the client side so that the app can display the logs in real time. I am aware of the existence of tRPC subscription (https://trpc.io/docs/subscriptions) and it seems like that will be what i need, but I don't know how to connect the pieces together for my case. Thank you so much in advance.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server