private function registerEvents() { $this->handlers = $this->model->copyEvents($this, ['start', 'stop', 'connect', 'disconnect']); $this->handlers[] = $this->model->on('recv', [$this, 'handleReceive']); }