You are here

public static function Nodejs::initConfig in Node.js integration 7

Same name and namespace in other branches
  1. 6 nodejs.module \Nodejs::initConfig()
2 calls to Nodejs::initConfig()
Nodejs::httpRequest in ./nodejs.module
Nodejs::sendMessage in ./nodejs.module

File

./nodejs.module, line 813

Class

Nodejs

Code

public static function initConfig() {
  if (!isset(self::$config)) {
    self::$config = nodejs_get_config();
    self::$baseUrl = nodejs_get_url(self::$config);
  }
}