Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function onSubscribeApprove(ConnectionInterface $conn, $topic)
 {
     $topicObj = $this->getTopic($topic);
     // ignore repeat approvals
     if ($conn->WAMP->subscriptions->contains($topicObj)) {
         return;
     }
     $this->topicLookup[$topicObj->getId()]->add($conn);
     $conn->WAMP->subscriptions->attach($topicObj);
     $this->app->onSubscribeApprove($conn, $topicObj);
 }