function nodejs_get_url in Node.js integration 8
Same name and namespace in other branches
- 6 nodejs.module \nodejs_get_url()
- 7 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
File
- ./
nodejs.module, line 584
Code
function nodejs_get_url($config, $callback = '') {
return $config['nodejs']['scheme'] . '://' . $config['nodejs']['host'] . ':' . $config['nodejs']['port'] . '/' . $callback;
}