Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2020-07-06 22:09:35 +0300
committerJames M Snell <jasnell@gmail.com>2020-07-09 17:36:34 +0300
commitf98a441bf75f2b0b698a0f9dace218f56386ec4a (patch)
tree6c35285473656b5523ec713ca922ac2bd37724c4 /doc/api/http2.md
parenta720c0edcc40a86bee9a696cd791df3420c398ad (diff)
doc: document the ready event for Http2Stream
Fixes: https://github.com/nodejs/node/issues/22804 PR-URL: https://github.com/nodejs/node/pull/34221 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r--doc/api/http2.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index e17b65cf806..21ce7739fbf 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -984,6 +984,15 @@ argument identifying the frame type, and an integer argument identifying the
error code. The `Http2Stream` instance will be destroyed immediately after the
`'frameError'` event is emitted.
+#### Event: `'ready'`
+<!-- YAML
+added: v8.4.0
+-->
+
+The `'ready'` event is emitted when the `Http2Stream` has been opened, has
+been assigned an `id`, and can be used. The listener does not expect any
+arguments.
+
#### Event: `'timeout'`
<!-- YAML
added: v8.4.0