Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm trying to use @ts-rest/fastify with Server Side Events (SSE). It was unclear if or how I could do it.
I found the following snippet as part of the @ts-rest/fastify implementation and it seems to allow reply as an option argument for the routeImpl which was not clear. This should let me do reply.sse(...)
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm trying to use
@ts-rest/fastify
with Server Side Events (SSE). It was unclear if or how I could do it. I found the following snippet as part of the@ts-rest/fastify
implementation and it seems to allowreply
as an option argument for therouteImpl
which was not clear. This should let me doreply.sse(...)
ChatGPT helped me out, suggestion the following routeImpl code for my use case
Describe the solution you'd like A clear and concise description of what you want to happen.
Please make this feature capability more clear in the docs, perhaps with an example in the docs or the code. Thanks I'll try it out myself now.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
You could also perhaps also add a thin wrapper for SSE in the SDK/API?
Additional context Add any other context or screenshots about the feature request here.