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