Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function onUnsubscribe(ConnectionInterface $conn, $topic)
 {
     $topicObj = $this->getTopic($topic);
     if (!$conn->WAMP->subscriptions->contains($topicObj)) {
         return;
     }
     $this->cleanTopic($topicObj, $conn);
     $this->app->onUnsubscribe($conn, $topicObj);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function onUnsubscribe(ConnectionInterface $conn, $topic)
 {
     $topicObj = $this->getTopic($topic);
     if ($conn->WAMP->subscriptions->contains($topicObj)) {
         $conn->WAMP->subscriptions->detach($topicObj);
     } else {
         return;
     }
     $this->topicLookup[$topic]->remove($conn);
     $this->app->onUnsubscribe($conn, $topicObj);
 }