diff --git a/src/Client.php b/src/Client.php index 7c7d7d5..5b5b235 100644 --- a/src/Client.php +++ b/src/Client.php @@ -53,7 +53,7 @@ public function send(CommandInterface $command): ResponseInterface */ public function read(): ResponseInterface { - $message = stream_get_line($this->resource, 2048, "\r\n"); + $message = explode("\r\n", fgets($this->resource))[0]; return new SonicResponse($message); }