示例#1
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $this->_i--;
     $this->_in->info('onClose', ['#open' => $this->_i, 'id' => $conn->resourceId]);
     $decorated = $this->_connections[$conn];
     $this->_connections->detach($conn);
     $this->_component->onClose($decorated);
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn)
 {
     $this->_i--;
     if (null !== $this->_in) {
         $this->_in->addInfo('onClose', array('#open' => $this->_i, 'id' => $conn->resourceId));
     }
     $this->_component->onClose($conn);
 }