mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05: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
96f72ae54f
commit
ee56aecced
12 files changed
+50
-1
No files matched your search
@@ -398,6 +398,11 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
|
||||
&EnvironmentOptions::enable_source_maps,
|
||||
kAllowedInEnvvar);
|
||||
AddOption("--experimental-abortcontroller", "", NoOp{}, kAllowedInEnvvar);
|
||||
AddOption("--experimental-eventsource",
|
||||
"experimental EventSource API",
|
||||
&EnvironmentOptions::experimental_eventsource,
|
||||
kAllowedInEnvvar,
|
||||
false);
|
||||
AddOption("--experimental-fetch",
|
||||
"experimental Fetch API",
|
||||
&EnvironmentOptions::experimental_fetch,
|
||||
|
||||
@@ -115,6 +115,7 @@ class EnvironmentOptions : public Options {
|
||||
bool require_module = false;
|
||||
std::string dns_result_order;
|
||||
bool enable_source_maps = false;
|
||||
bool experimental_eventsource = false;
|
||||
bool experimental_fetch = true;
|
||||
bool experimental_websocket = true;
|
||||
bool experimental_global_customevent = true;
|
||||
|
||||
Reference in new issue
Block a user