Commit b2d29596 authored by Ian McLean's avatar Ian McLean Committed by Lev Ananikyan
Browse files

Issue #3172690 by imclean, le72, Syntapse: preconfigured socket.io client...

Issue #3172690 by imclean, le72, Syntapse: preconfigured socket.io client results in browser error: GET http://localhost:8080/socket.io/socket.io.js net::ERR_CONNECTION_REFUSED
parent 83fd2341
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -278,11 +278,8 @@ function nodejs_add_js_to_page_check() {
 * Return the path to the socket.io client js.
 */
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;
}