| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1652,6 +1652,21 @@ Examples of `Duplex` streams include: | |||
| 1652 | 1652 | * [zlib streams][zlib] | |
| 1653 | 1653 | * [crypto streams][crypto] | |
| 1654 | 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 | + | ||
| 1655 | 1670 | #### Class: `stream.Transform` | |
| 1656 | 1671 | <!-- YAML | |
| 1657 | 1672 | added: v0.9.4 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments