You are here

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

Same name and namespace in other branches
  1. 7 nodejs.module \Nodejs::initConfig()
8 calls to Nodejs::initConfig()
Nodejs::addUserToChannel in ./nodejs.module
Nodejs::kickUser in ./nodejs.module
Nodejs::logoutUser in ./nodejs.module
Nodejs::removeUserFromChannel in ./nodejs.module
Nodejs::sendContentToken in ./nodejs.module

... See full list

File

./nodejs.module, line 593

Class

Nodejs

Code

public static function initConfig() {
  if (!isset(self::$config)) {
    self::$config = nodejs_get_config();
    self::$headers = array(
      'NodejsServiceKey' => self::$config['serviceKey'],
    );
    self::$baseUrl = nodejs_get_url(self::$config);
  }
}