Azure/fetch-event-source
View on GitHub ↗ ★ 2,891 TypeScript
A better API for making Event Source requests, with all the features of fetch()
5 mentions on Hacker News by 5 people: 0 stories, 5 comments · first 2020-09-26 · latest 2025-01-05
20082026
-
…sure about the default `EventSource` object in JavaScript, but the Microsoft polyfill that I use ( https://github.com/Azure/fetch-event-source ) supports `POST` and there's an option `openWhenHidden` which controls how it reacts to users…
comment by CharlieDigital · 2025-01-05 · in Back to basics: Why we chose long-polling over websockets -
EventSource is really really limited. However, you can instead use Fetch via something like https://github.com/Azure/fetch-event-source to consume SSEs.
comment by ekojs · 2024-09-22 · in How streaming LLM APIs work -
…) though * `text/event-stream` relies on a modified version of [Azure's fetch-event-source]( https://github.com/Azure/fetch-event-source ). They handle errors and chunking better than I was. New version has been tested out to 4 billion…
comment by sudodevnull · 2024-04-20 · in Datastar v0.12.0 (Htmx+Alpine Alternative) -
Someone at Azure thought of this[1] [1] https://github.com/Azure/fetch-event-source
comment by makkesk8 · 2024-03-18 · in WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport -
…[4] seems to solve some of the issues with websockets. [1] https://stackoverflow.com/a/417184 [2] https://github.com/Azure/fetch-event-source [3] https://www.apollographql.com/docs/react/v2.4/features/defer... [4]…
comment by vishwams · 2020-09-26 · in Deprecate GraphQL Subscriptions over WebSockets in Favour of SSE/EventSource API