Skip to content

Server compatibility

Better SSE works with any runtime that runs JavaScript (ES2020+) and supports the following APIs:


For Node users, version 20 is the minimum officially supported version.


When using the Fetch API, the provided Request and optional Response object must be instances of globalThis.Request and globalThis.Response, respectively. Providing a ponyfilled implementation will cause an error to be thrown unless you also assign it to globalThis:

import {
Request as PonyfilledRequest,
Response as PonyfilledResponse
} from "fetch-ponyfill"
globalThis.Request = PonyfilledRequest
globalThis.Response = PonyfilledResponse