Azure / fetch-event-source

A better API for making Event Source requests, with all the features of fetch()
MIT License
1.82k stars 145 forks source link

How can I tell when its done? #85

Open PowellT opened 3 months ago

PowellT commented 3 months ago

I need to do something when the stream is complete? onclose doesnt seem to be firing

any help appreciated

a554878526 commented 1 week ago

When the stream completes is determined by the server, and each piece of the complete stream follows through \n\n