code: function (status, condition) {
          var that = this._connection;
          if (this._autoService && status === Strophe.Status.CONNECTED) {
              this.service =  'pubsub.'+Strophe.getDomainFromJid(that.jid);
              this.jid = that.jid;
          }
      }
docs: Called by Strophe on connection event