Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $this->app->onClose($conn);
     foreach ($this->topicLookup as $topic) {
         $topic->remove($conn);
     }
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $this->app->onClose($conn);
     foreach ($this->topicLookup as $topic => $storage) {
         $storage->remove($conn);
         if (0 === $storage->count()) {
             unset($this->topicLookup[$topic]);
         }
     }
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $decor = $this->connections[$conn];
     $this->connections->detach($conn);
     $this->_decorating->onClose($decor);
 }