/**
  * {@inheritdoc}
  */
 function onOpen(ConnectionInterface $conn)
 {
     $this->_i++;
     if (null !== $this->_in) {
         $this->_in->addInfo('onOpen', array('#open' => $this->_i, 'id' => $conn->resourceId, 'ip' => $conn->remoteAddress));
     }
     $this->_component->onOpen($conn);
 }
 /**
  * {@inheritdoc}
  */
 function onOpen(ConnectionInterface $conn)
 {
     $this->_i++;
     $this->_in->info('onOpen', ['#open' => $this->_i, 'id' => $conn->resourceId, 'ip' => $conn->remoteAddress]);
     $decoratedConn = new MessageLoggedConnection($conn);
     $decoratedConn->setLogger($this->_out);
     $this->_connections->attach($conn, $decoratedConn);
     $this->_component->onOpen($decoratedConn);
 }