/**
  * {@inheritdoc}
  */
 public function getSubProtocols()
 {
     if ($this->_component instanceof WsServerInterface) {
         return $this->_component->getSubProtocols();
     } else {
         return array();
     }
 }