Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add notes about non-conforming streams #29895

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,12 @@ 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. As well as emitting
ronag marked this conversation as resolved.
Show resolved Hide resolved
`'error'` events manually through `.emit(err)` instead of using API provided
callbacks or `.destroy(err)`. Doing so can break current and future stream
invariants leading to behaviour and/or compatibility issues with other streams,
ronag marked this conversation as resolved.
Show resolved Hide resolved
stream utilities and user expectations.
ronag marked this conversation as resolved.
Show resolved Hide resolved
ronag marked this conversation as resolved.
Show resolved Hide resolved

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