@@ -53,6 +53,15 @@ read-only streams and the readable side of duplex streams.
5353Besides defining a few methods, this interface also implements the
5454` EventEmitterInterface ` which allows you to react to certain events.
5555
56+ Every implementation of this interface MUST follow these event semantics in
57+ order to be considered a well-behaving stream.
58+
59+ > Note that higher-level implementations of this interface may choose to
60+ define additional events with dedicated semantics not defined as part of
61+ this low-level stream specification. Conformance with these event semantics
62+ is out of scope for this interface, so you may also have to refer to the
63+ documentation of such a higher-level implementation.
64+
5665#### data event
5766
5867The ` data ` event will be emitted whenever some data was read/received
@@ -383,6 +392,15 @@ write-only streams and the writable side of duplex streams.
383392Besides defining a few methods, this interface also implements the
384393` EventEmitterInterface ` which allows you to react to certain events.
385394
395+ Every implementation of this interface MUST follow these event semantics in
396+ order to be considered a well-behaving stream.
397+
398+ > Note that higher-level implementations of this interface may choose to
399+ define additional events with dedicated semantics not defined as part of
400+ this low-level stream specification. Conformance with these event semantics
401+ is out of scope for this interface, so you may also have to refer to the
402+ documentation of such a higher-level implementation.
403+
386404#### drain event
387405
388406The ` drain ` event will be emitted whenever the write buffer became full
@@ -703,6 +721,15 @@ Besides defining a few methods, this interface also implements the
703721` EventEmitterInterface ` which allows you to react to the same events defined
704722on the ` ReadbleStreamInterface ` and ` WritableStreamInterface ` .
705723
724+ Every implementation of this interface MUST follow these event semantics in
725+ order to be considered a well-behaving stream.
726+
727+ > Note that higher-level implementations of this interface may choose to
728+ define additional events with dedicated semantics not defined as part of
729+ this low-level stream specification. Conformance with these event semantics
730+ is out of scope for this interface, so you may also have to refer to the
731+ documentation of such a higher-level implementation.
732+
706733See also [ ` ReadableStreamInterface ` ] ( #readablestreaminterface ) and
707734[ ` WritableStreamInterface ` ] ( #writablestreaminterface ) for more details.
708735
0 commit comments