Add Response object

This commit is contained in:
2021-01-23 01:07:14 +03:00
parent 8046eae846
commit fbe24eb6c4
6 changed files with 99 additions and 69 deletions

View File

@@ -13,7 +13,7 @@ class Reader extends Connection
{
$buffer = sprintf('SUB %s %s', $topic, $channel).PHP_EOL;
$this->send($buffer)->expectResponse(self::OK);
$this->send($buffer)->getResponse()->okOrFail();
}
/**