public function readBytes(int $bytes): string
	{
		if ($this->connected() === false)
		{
			throw new \Exception('Not connected');
		}

		$response = fread($this->connection, $bytes);

		if ($response === false)
		{
			throw new \Exception('Nothing to read');
		}

		return $response;
	}
public function readBytes(int $bytes): string
	{
		if ($this->connected() === false)
		{
			throw new \Exception('Not connected');
		}

		$response = fread($this->connection, $bytes);

		if ($response === false)
		{
			throw new \Exception('Nothing to read');
		}

		return $response;
	}
public function readBytes ( int $ bytes ) : string { if ( $ this -> connected ( ) === false ) { throw new \ Exception ( 'Not connected' ) ; } $ response = fread ( $ this -> connection , $ bytes ) ; if ( $ response === false ) { throw new \ Exception ( 'Nothing to read' ) ; } return $ response ; }
Read a number of bytes from the stream.
@param int $bytes
@return string
@throws \Exception
Read a number of bytes from the stream .