Class CompositeStream
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.
- Evenement\EventEmitter implements Evenement\EventEmitterInterface uses Evenement\EventEmitterTrait
-
React\Stream\CompositeStream
implements
React\Stream\DuplexStreamInterface
Direct known subclasses
React\Stream\ThroughStream
Namespace: React\Stream
See:
See:
Located at CompositeStream.php
See:
React\Stream\ReadableStreamInterfaceSee:
React\Stream\WritableStreamInterfaceLocated at CompositeStream.php
public
|
#
__construct(
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
#
pipe(
Pipes all the data from this readable source into the given writable destination. |
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
emit(),
listeners(),
on(),
once(),
removeAllListeners(),
removeListener()
|
(),
(),
(),
(),
(),
()
|
protected
mixed
|
$readable | |
|
protected
mixed
|
$writable | |
|
protected
mixed
|
$pipeSource | |
|
protected
boolean
|
$closed | false |
$listeners
|