lib: add EventSource Client

PR-URL: https://github.com/nodejs/node/pull/51575
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Aras Abbasi authored and GitHub committed 2024-05-13 05:32:08 +00:00
1 parent ac5f8f0516
commit 1d7d094a98
12 files changed
+50 -1

No files matched your search

+1
View File
@@ -126,6 +126,7 @@ const webIdlExposedWindow = new Set([
'Request',
'Response',
'WebSocket',
'EventSource',
]);
const nodeGlobals = new Set([
+4
View File
@@ -333,6 +333,10 @@ if (global.structuredClone) {
knownGlobals.push(global.structuredClone);
}
if (global.EventSource) {
knownGlobals.push(EventSource);
}
if (global.fetch) {
knownGlobals.push(fetch);
}