code: function(state) {
              if (state == this.state) return;
  
              this.state = state;
              logging.log("state ", this.state);
              this.trigger("state", this.state);
          }
docs: Set connexion status