4 ms·
Manually streaming a XHR and parsing the messages is significantly more work, and you lose the built-in browser API. But if you use a fetch ReadableStream with
by apitman 2y ago
Manually streaming a XHR and parsing the messages is significantly more work, and you lose the built-in browser API. But if you use a fetch ReadableStream with TLV messages I'm sold.
- nchmy 2y agoHere's SSE with fetch and streams https://github.com/rexxars/eventsource-client https://github.com/rexxars/eventsource-client