Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2024 (3)
20082026
  1. …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…
  2. 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
  3. …) 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)
  4. Someone at Azure thought of this[1] [1] https://github.com/Azure/fetch-event-source
  5. …[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]…