Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getSubProtocols()
 {
     if ($this->_decorating instanceof WsServerInterface) {
         $subs = $this->_decorating->getSubProtocols();
         $subs[] = 'wamp';
         return $subs;
     } else {
         return array('wamp');
     }
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getSubProtocols()
 {
     if ($this->app instanceof WsServerInterface) {
         return $this->app->getSubProtocols();
     }
     return array();
 }