Receive Reader as dependency in Subscriber instead of extending it

This commit is contained in:
2021-01-23 01:24:35 +03:00
parent 6509753bd9
commit 7873a9f010
4 changed files with 25 additions and 11 deletions

View File

@@ -122,7 +122,7 @@ abstract class Connection
return $this;
}
protected function receive(float $timeout = 0): ?Response
public function receive(float $timeout = 0): ?Response
{
$socket = $this->socket();