diff --git a/src/Connection.php b/src/Connection.php index 7b9041f..ada2107 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -164,6 +164,12 @@ abstract class Connection { $response = $this->readResponse(); + if ($response->isHeartBeat()) { + $this->command('NOP'); + + $response = $this->readResponse(); + } + if (!$response->isOk()) { throw new BadResponse($response); }