public function start() { $this->loop = \WyriHaximus\Ratchet\loopResolver(); EventManager::instance()->dispatch(ConstructEvent::create($this->loop)); $this->loop->run(); }