You are here

public function ApiClient::ping in Rocket.Chat 8.2

This function does a simple call to the backend and checks if it succeeeds.

Return value

bool

File

modules/rocket_chat_api/src/RocketChat/ApiClient.php, line 179

Class

ApiClient
Class ApiClient.

Namespace

Drupal\rocket_chat_api\RocketChat

Code

public function ping() {
  return $this
    ->info()['code'] === 200;
}