diff --git a/src/BaseClient.php b/src/BaseClient.php index 1f7f744..bf6c20c 100644 --- a/src/BaseClient.php +++ b/src/BaseClient.php @@ -324,9 +324,9 @@ public function publish( ); } - public function ping() + public function ping(bool $response = true) { - return $this->send(['type' => Protocol\Types::PINGREQ]); + return $this->send(['type' => Protocol\Types::PINGREQ], $response); } public function close(int $code = ReasonCode::NORMAL_DISCONNECTION, array $properties = []): bool