onHandlerListener(); $this->onBaseListener(); } /** * @throws NotFindClassException * @throws ReflectionException */ public function onBaseListener() { $this->on('connect', $this->createHandler('connect')); $this->on('receive', $this->createHandler('receive')); $this->on('close', $this->createHandler('close')); } }