public function onBeforeHandshake($cb) { if (!method_exists($this->realRoute, 'onBeforeHandshake')) { return false; } $this->realRoute->onBeforeHandshake($cb); }