diff --git a/doc/api/stream.md b/doc/api/stream.md index a7a8bedd9243e0..13b1f2bef76c5e 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1651,6 +1651,21 @@ Examples of `Duplex` streams include: * [zlib streams][zlib] * [crypto streams][crypto] +##### `duplex.allowHalfOpen` + + +* {boolean} + +If `false` then the stream will automatically end the writable side when the +readable side ends. Set initially by the `allowHalfOpen` constructor option, +which defaults to `false`. + +This can be changed manually to change the half-open behavior of an existing +`Duplex` stream instance, but must be changed before the `'end'` event is +emitted. + #### Class: `stream.Transform`