mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
ac5f8f0516
commit
1d7d094a98
12 files changed
+50
-1
No files matched your search
@@ -126,6 +126,7 @@ const webIdlExposedWindow = new Set([
|
||||
'Request',
|
||||
'Response',
|
||||
'WebSocket',
|
||||
'EventSource',
|
||||
]);
|
||||
|
||||
const nodeGlobals = new Set([
|
||||
|
||||
@@ -333,6 +333,10 @@ if (global.structuredClone) {
|
||||
knownGlobals.push(global.structuredClone);
|
||||
}
|
||||
|
||||
if (global.EventSource) {
|
||||
knownGlobals.push(EventSource);
|
||||
}
|
||||
|
||||
if (global.fetch) {
|
||||
knownGlobals.push(fetch);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user