public function setAuthenticated($authenticated)
    {
        // make sure the metaevent is only sent when changing from
        // not-authenticate to authenticated
        if ($authenticated && !$this->authenticated) {
            // metaevent
            $this->getRealm()->publishMeta('wamp.metaevent.session.on_join', [$this->getMetaInfo()]);
        }
        parent::setAuthenticated($authenticated);

    }
public function setAuthenticated($authenticated)
    {
        // make sure the metaevent is only sent when changing from
        // not-authenticate to authenticated
        if ($authenticated && !$this->authenticated) {
            // metaevent
            $this->getRealm()->publishMeta('wamp.metaevent.session.on_join', [$this->getMetaInfo()]);
        }
        parent::setAuthenticated($authenticated);

    }
public function setAuthenticated ( $ authenticated ) { // make sure the metaevent is only sent when changing from // not-authenticate to authenticated if ( $ authenticated && ! $ this -> authenticated ) { // metaevent $ this -> getRealm ( ) -> publishMeta ( 'wamp.metaevent.session.on_join' , [ $ this -> getMetaInfo ( ) ] ) ; } parent :: setAuthenticated ( $ authenticated ) ; }
Set authenticated state

@param boolean $authenticated
Set authenticated state