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`