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;
}