function nodejs_get_url in Node.js integration 7
Same name and namespace in other branches
- 8 nodejs.module \nodejs_get_url()
- 6 nodejs.module \nodejs_get_url()
Get the URL of a Node.js callback.
Parameters
array $config: The result of nodejs_get_config().
string $callback: The path to call on Node.js server (without leading /).
Return value
string
1 call to nodejs_get_url()
File
- ./
nodejs.module, line 714
Code
function nodejs_get_url($config, $callback = '') {
return $config['nodejs']['scheme'] . '://' . $config['nodejs']['host'] . ':' . $config['nodejs']['port'] . '/' . $callback;
}