public static function Nodejs::getServerVersion in Node.js integration 7
3 calls to Nodejs::getServerVersion()
- Nodejs::checkServerVersion in ./
nodejs.module - nodejs_requirements in ./
nodejs.install - Implements hook_requirements()
- nodejs_server_has_update in ./
nodejs.module - Checks if the node.js server app has an update.
File
- ./
nodejs.module, line 834
Class
Code
public static function getServerVersion() {
if (isset(self::$nodeServerVersion)) {
return self::$nodeServerVersion;
}
$data = self::healthCheck();
if (!isset($data->version)) {
self::$nodeServerVersion = FALSE;
}
else {
self::$nodeServerVersion = $data->version;
}
return self::$nodeServerVersion;
}