Phergie\Irc\Client\React\Client::getReadStream PHP Method

getReadStream() protected method

Returns a stream instance for parsing messages from the server and emitting them as events.
protected getReadStream ( Phergie\Irc\ConnectionInterface $connection ) : Phergie\Irc\Client\React\ReadStream
$connection Phergie\Irc\ConnectionInterface Connection corresponding to the read stream
return Phergie\Irc\Client\React\ReadStream
    protected function getReadStream(ConnectionInterface $connection)
    {
        $read = new ReadStream();
        $this->addLogging($read, $connection);
        $read->on('invalid', $this->getOutputLogCallback($connection, 'notice', 'Parser unable to parse line: '));
        return $read;
    }