Skip to content

Commit 320a296

Browse files
authored
Add response parameter to ping method
1 parent bdbc6e1 commit 320a296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BaseClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ public function publish(
324324
);
325325
}
326326

327-
public function ping()
327+
public function ping(bool $response = true)
328328
{
329-
return $this->send(['type' => Protocol\Types::PINGREQ]);
329+
return $this->send(['type' => Protocol\Types::PINGREQ], $response);
330330
}
331331

332332
public function close(int $code = ReasonCode::NORMAL_DISCONNECTION, array $properties = []): bool

0 commit comments

Comments
 (0)