public function onPong(ConnectionInterface $from, Frame $frame) { $transport = $this->sessions[$from]; if (method_exists($transport, 'onPong')) { $transport->onPong($frame); } }