コード例 #1
0
ファイル: TopicManager.php プロジェクト: hugohenrique/Ratchet
 /**
  * {@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);
 }
コード例 #2
0
ファイル: TopicManager.php プロジェクト: unkerror/Budabot
 /**
  * {@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);
 }