GeezerVison is showing github.com — doc: add missing EventSource docs to globals · nodejs/node@92f3447
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/globals.md +13Lines changed: 13 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -451,6 +451,17 @@ changes: |
451 | 451 | A browser-compatible implementation of the `Event` class. See |
452 | 452 | [`EventTarget` and `Event` API][] for more details. |
453 | 453 |
|
| 454 | +## `EventSource` |
| 455 | + |
| 456 | +<!-- YAML |
| 457 | +added: REPLACEME |
| 458 | +--> |
| 459 | + |
| 460 | +> Stability: 1 - Experimental. Enable this API with the [`--experimental-eventsource`][] |
| 461 | +> CLI flag. |
| 462 | +
|
| 463 | +A browser-compatible implementation of the [`EventSource`][] class. |
| 464 | + |
454 | 465 | ## `EventTarget` |
455 | 466 |
|
456 | 467 | <!-- YAML |
@@ -1012,6 +1023,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. |
1012 | 1023 | [CommonJS modules]: modules.md |
1013 | 1024 | [ECMAScript module]: esm.md |
1014 | 1025 | [Web Crypto API]: webcrypto.md |
| 1026 | +[`--experimental-eventsource`]: cli.md#--experimental-eventsource |
1015 | 1027 | [`--experimental-websocket`]: cli.md#--experimental-websocket |
1016 | 1028 | [`--no-experimental-fetch`]: cli.md#--no-experimental-fetch |
1017 | 1029 | [`--no-experimental-global-customevent`]: cli.md#--no-experimental-global-customevent |
@@ -1023,6 +1035,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. |
1023 | 1035 | [`CustomEvent` Web API]: https://dom.spec.whatwg.org/#customevent |
1024 | 1036 | [`DOMException`]: https://developer.mozilla.org/en-US/docs/Web/API/DOMException |
1025 | 1037 | [`DecompressionStream`]: webstreams.md#class-decompressionstream |
| 1038 | +[`EventSource`]: https://developer.mozilla.org/en-US/docs/Web/API/EventSource |
1026 | 1039 | [`EventTarget` and `Event` API]: events.md#eventtarget-and-event-api |
1027 | 1040 | [`MessageChannel`]: worker_threads.md#class-messagechannel |
1028 | 1041 | [`MessageEvent`]: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent |
|