code: function (jid, sid, rid, callback, wait, hold, wind)
      {
          this._conn.jid = jid;
          this.sid = sid;
          this.rid = rid;
  
          this._conn.connect_callback = callback;
  
          this._conn.domain = Strophe.getDomainFromJid(this._conn.jid);
  
          this._conn.authenticated = true;
          this._conn.connected = true;
  
          this.wait = wait || this.wait;
          this.hold = hold || this.hold;
          this.window = wind || this.window;
  
          this._conn._changeConnectStatus(Strophe.Status.ATTACHED, null);
      }
docs: PrivateFunction: _attach
  Attach to an already created and authenticated BOSH session.
  
  This function is provided to allow Strophe to attach to BOSH
  sessions which have been created externally, perhaps by a Web
  application.  This is often used to support auto-login type features
  without putting user credentials into the page.
  
  Parameters:
  (String) jid - The full JID that is bound by the session.
  (String) sid - The SID of the BOSH session.
  (String) rid - The current RID of the BOSH session.  This RID
  will be used by the next request.
  (Function) callback The connect callback function.
  (Integer) wait - The optional HTTPBIND wait value.  This is the
  time the server will wait before returning an empty result for
  a request.  The default setting of 60 seconds is recommended.
  Other settings will require tweaks to the Strophe.TIMEOUT value.
  (Integer) hold - The optional HTTPBIND hold value.  This is the
  number of connections the server will hold at one time.  This
  should almost always be set to 1 (the default).
  (Integer) wind - The optional HTTBIND window value.  This is the
  allowed range of request ids that are valid.  The default is 5.