We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2b73e commit 8ea4befCopy full SHA for 8ea4bef
doc/api/stream.md
@@ -1652,6 +1652,21 @@ Examples of `Duplex` streams include:
1652
* [zlib streams][zlib]
1653
* [crypto streams][crypto]
1654
1655
+##### `duplex.allowHalfOpen`
1656
+<!-- YAML
1657
+added: v0.9.4
1658
+-->
1659
+
1660
+* {boolean}
1661
1662
+If `false` then the stream will automatically end the writable side when the
1663
+readable side ends. Set initially by the `allowHalfOpen` constructor option,
1664
+which defaults to `false`.
1665
1666
+This can be changed manually to change the half-open behavior of an existing
1667
+`Duplex` stream instance, but must be changed before the `'end'` event is
1668
+emitted.
1669
1670
#### Class: `stream.Transform`
1671
<!-- YAML
1672
added: v0.9.4
0 commit comments