function nodejs_get_socketio_js_config in Node.js integration 8
Same name and namespace in other branches
- 6 nodejs.module \nodejs_get_socketio_js_config()
- 7 nodejs.module \nodejs_get_socketio_js_config()
Return the path to the socket.io client js.
1 call to nodejs_get_socketio_js_config()
- nodejs_library_info_build in ./
nodejs.module - Implements hook_library_info_build().
File
- ./
nodejs.module, line 280
Code
function nodejs_get_socketio_js_config($nodejs_config) {
$socket_io_config = \Drupal::config('nodejs.config')
->get('socket_io');
if (!$socket_io_config['path']) {
$socket_io_config['path'] = $nodejs_config['client']['scheme'] . '://' . $nodejs_config['client']['host'] . ':' . $nodejs_config['client']['port'] . '/socket.io/socket.io.js';
}
return $socket_io_config;
}