diff --git a/doc/api/quic.md b/doc/api/quic.md index 1a592d85945ddb..e8314543ba15ad 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -2033,8 +2033,7 @@ added: v23.8.0 The callback to invoke when the peer aborts a direction of the stream by sending a `RESET_STREAM` frame (the peer abandons their writable side, so -no further data will arrive on our readable side) or a `STOP_SENDING` -frame (the peer asks us to stop writing on our writable side). +no further data will arrive on our readable side). The callback receives a Node.js error whose `errorCode` (`bigint`) property carries the application error code from the wire frame. @@ -2045,6 +2044,21 @@ continue using the still-active direction on a bidirectional stream), abort the other direction with [`writer.fail()`][], or tear down the whole stream with [`stream.destroy()`][]. Read/write. +### `stream.onstopsending` + + + +* Type: {quic.OnStreamErrorCallback} + +The callback to invoke when the peer aborts a direction of the stream by +sending a `STOP_SENDING` frame (the peer asks us to stop writing on our +writable side). + +The callback receives a Node.js error whose `errorCode` (`bigint`) +property carries the application error code from the wire frame. Read/write. + ### `stream.headers`