Skip to content
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,13 @@ of a stream that are intended for use by consumers (as described in the
[API for Stream Consumers][] section). Doing so may lead to adverse side effects
in application code consuming the stream.

It is highly discouraged to override any public method such as `write()`,
Comment thread
ronag marked this conversation as resolved.
Outdated
`end()`, `cork()`, `uncork()`, `read()` and `destroy()`, or to emit any
Comment thread
ronag marked this conversation as resolved.
Outdated
internal event such as `'error'`, `'data'`, `'end'`, `'finish'` and `'close'`
manually through `.emit()`. Doing so can break current and future stream
Comment thread
ronag marked this conversation as resolved.
Outdated
invariants leading to behavior and/or compatibility issues with other streams,
stream utilities and user expectations.
Comment thread
ronag marked this conversation as resolved.
Outdated
Comment thread
ronag marked this conversation as resolved.
Outdated

### Simplified Construction
<!-- YAML
added: v1.2.0
Expand Down