Example #1
0
 /**
  * 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();
 }