nodejs / undici

An HTTP/1.1 client, written from scratch for Node.js
https://nodejs.github.io/undici
MIT License
6.24k stars 542 forks source link

How to handle text/event-stream? #536

Open ronag opened 3 years ago

ronag commented 3 years ago

I think text/event-stream responses should be handled as an upgrade and the socket released from the undici client (like with websockets).

Edit: this is done but docs for EventSource are missing.

ronag commented 3 years ago

@mcollina wdyt?

mcollina commented 3 years ago

I agree! Supporting it would need some work on the client.

Uzlopak commented 2 months ago

Can we close this, because EventSource is implemented?

Ethan-Arrowood commented 2 months ago

It may be good to include an example to the docs before closing this out