Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b93ba07

Browse filesBrowse files
preyunkBethGriggs
authored andcommitted
doc: add writable and readable options to Duplex docs
Fixes: #34382 PR-URL: #34383 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
1 parent 7cde699 commit b93ba07
Copy full SHA for b93ba07

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2412,6 +2412,10 @@ changes:
24122412
* `allowHalfOpen` {boolean} If set to `false`, then the stream will
24132413
automatically end the writable side when the readable side ends.
24142414
**Default:** `true`.
2415+
* `readable` {boolean} Sets whether the `Duplex` should be readable.
2416+
**Default:** `true`.
2417+
* `writable` {boolean} Sets whether the `Duplex` should be writable.
2418+
**Default:** `true`.
24152419
* `readableObjectMode` {boolean} Sets `objectMode` for readable side of the
24162420
stream. Has no effect if `objectMode` is `true`. **Default:** `false`.
24172421
* `writableObjectMode` {boolean} Sets `objectMode` for writable side of the

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.