public static function configure($config = []) {
    $defaults = include dirname(__DIR__).'/conf/defaults.php';
    self::$config = array_replace($defaults, $config);
  }
public static function configure($config = []) {
    $defaults = include dirname(__DIR__).'/conf/defaults.php';
    self::$config = array_replace($defaults, $config);
  }
public static function configure ( $ config = [ ] ) { $ defaults = include dirname ( __DIR__ ) . '/conf/defaults.php' ; self :: $ config = array_replace ( $ defaults , $ config ) ; }
Apply configuration to Nymph-PubSub.

$config should be an associative array of Nymph-PubSub configuration. Use
the following form:

[
'entries' => [
'ws://127.0.0.1:8081/',
],
'port' => 8081
]

@param array $config An associative array of Nymph's configuration.
Apply configuration to Nymph - PubSub .