public function start($config, $settings) { // override $config['deal_with_public'] = false; parent::init($config); $this->settings = $settings; if (!empty($this->settings)) { $this->server->set($this->settings); } $this->server->on('Start', [$this, 'onServerStart']); $this->server->on('Receive', [$this, 'onReceive']); $this->server->on('Shutdown', [$this, 'onServerShutdown']); $this->server->on('WorkerStart', [$this, 'onWorkerStart']); $this->server->start(); }