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