Interface DuplexStreamInterface
The DuplexStreamInterface is responsible for providing an
interface for duplex streams (both readable and writable).
It builds on top of the existing interfaces for readable and writable streams
and follows the exact same method and event semantics. If you're new to this
concept, you should look into the ReadableStreamInterface and
WritableStreamInterface first.
Besides defining a few methods, this interface also implements the
EventEmitterInterface which allows you to react to the same events
defined on the ReadbleStreamInterface and
WritableStreamInterface.
- React\Stream\DuplexStreamInterface implements React\Stream\ReadableStreamInterface, React\Stream\WritableStreamInterface
Direct known implementers
React\Socket\ConnectionInterface, React\Stream\CompositeStream, React\Stream\DuplexResourceStreamIndirect known implementers
React\Stream\ThroughStream
Namespace: React\Stream
See:
See:
Located at DuplexStreamInterface.php
See:
React\Stream\ReadableStreamInterfaceSee:
React\Stream\WritableStreamInterfaceLocated at DuplexStreamInterface.php
close(),
isReadable(),
pause(),
pipe(),
resume()
|
emit(),
listeners(),
on(),
once(),
removeAllListeners(),
removeListener()
|
end(),
isWritable(),
write()
|