From 8bd61d4c3859f255e1302fd3625ab22c6c7d1c0b Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 15 Jul 2020 17:14:03 -0700 Subject: [PATCH] quic: documentation updates PR-URL: https://github.com/nodejs/node/pull/34351 Reviewed-By: Robert Nagy Reviewed-By: Anna Henningsen --- doc/api/quic.md | 71 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 54 insertions(+), 17 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index a6cd2ecd91c4b7..f23078dbc588bd 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -2115,15 +2115,6 @@ stream('initialHeaders', (headers) => { }); ``` -#### Event: `'ready'` - - -Emitted when the underlying `QuicSession` has emitted its `secure` event -this stream has received its id, which is accessible as `stream.id` once this -event is emitted. - #### Event: `'trailingHeaders'` -* `code` {number} +* Returns: {Promise`} -Closes the `QuicStream`. +Closes the `QuicStream` by ending both sides of the `QuicStream` `Duplex`. +Returns a `Promise` that is resolved once the `QuicStream` has been destroyed. #### `quicstream.dataAckHistogram`