Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $this->app->onClose($conn);
     foreach ($this->topicLookup as $topic) {
         $topic->remove($conn);
     }
 }
Ejemplo 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]);
         }
     }
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $decor = $this->connections[$conn];
     $this->connections->detach($conn);
     $this->_decorating->onClose($decor);
 }