You are here

public function Nodejs::healthCheck in Node.js integration 8

1 call to Nodejs::healthCheck()
Nodejs::safeNodeServerVersion in src/Nodejs.php

File

src/Nodejs.php, line 64

Class

Nodejs

Namespace

Drupal\nodejs

Code

public function healthCheck() {
  $data = $this
    ->httpRequest('nodejs/health/check');
  if (is_object($data) && isset($data->version)) {
    $this->nodeServerVersion = $data->version;
  }
  return $data;
}