nitro
nitro copied to clipboard
Difficulty Detecting Aborted Streaming Request on Nitro Side
Environment
Nitro: 2.8.1 Node: 18
Reproduction
https://stackblitz.com/edit/nuxt-tip-cancel-fetch-request-ysnjhe?file=app.vue,components%2FFetchStream.vue
Describe the bug
Hello Nitro Team,
Thanks for the incredible work you're doing with Nuxt and Nitro!
I'm currently facing a challenge, I'm trying to detect on the Nitro side when a request has been aborted or closed, specifically in the case of a streaming request. I've tried numerous approaches, but I haven't been successful in detecting a request being aborted on the Nitro side to halt the execution of the event handler and avoid further processing.
I've created a small reproduction for you to take a look at here
I thank you very much for your help, and I wish you an excellent day!
Additional context
No response
Logs
No response