/** * onHandshake * @return void */ public function onHandshake() { if (!isset($this->route)) { return; } $this->route->onWakeup(); try { $this->route->onHandshake(); } catch (\Exception $e) { Daemon::uncaughtExceptionHandler($e); } $this->route->onSleep(); }