Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We...
by apitman on Monday March 18, 2024 @07:43PM
(#39751406)
This is a good point. In fact, you just helped me realize that I can probably replace this[0] at work with a fetch implementation. ReadableStreams weren't generally available across browsers when I wrote that. This would also allow us to return binary data if we so desired (XHR can handle binary but it can't stream it chunk by chunk). Thanks!
[0]: https://github.com/anderspitman/xhr-stream-dl