Наследование: implements Sulu\Component\Websocket\WebsocketAppInterface
Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $connection)
 {
     $context = $this->getContext($connection);
     $this->messageDispatcher->onClose($connection, $context);
     parent::onClose($connection);
 }
Пример #2
0
 public function __construct($appName, MessageDispatcherInterface $messageDispatcher, Cache $contextsCache)
 {
     parent::__construct($contextsCache);
     $this->name = $appName;
     $this->messageDispatcher = $messageDispatcher;
 }