1. 05 Aug, 2019 5 commits
  2. 03 Aug, 2019 5 commits
  3. 02 Aug, 2019 8 commits
  4. 01 Aug, 2019 4 commits
  5. 31 Jul, 2019 2 commits
  6. 30 Jul, 2019 1 commit
  7. 29 Jul, 2019 8 commits
  8. 26 Jul, 2019 7 commits
    • JC Brand's avatar
      Prioritise logging in with credentials_url... · 179c0810
      JC Brand authored
      above logging in with passed in JID and password, since the password
      might be an expired token.
      179c0810
    • JC Brand's avatar
      Bugfix. Fix check for debounced reconnection · 778b4ff1
      JC Brand authored
      778b4ff1
    • JC Brand's avatar
      Clone auto_join_rooms values before passing in · 5a48f3da
      JC Brand authored
      otherwise values get tacked on, causing problems when reconnecting.
      5a48f3da
    • JC Brand's avatar
      Tear down previous session when reconnecting anonymously · 6dd4fc52
      JC Brand authored
      Because when we reconnect anonymously, we get a new JID, so it's as if
      it's a completely new user.
      6dd4fc52
    • JC Brand's avatar
      Let initConnection wait for for `_converse.api.login` · a1d7076e
      JC Brand authored
      So that the BOSH connection will be restored before we trigger `connectionInitialized`
      a1d7076e
    • JC Brand's avatar
      fd4ba891
    • JC Brand's avatar
      Re-add the `keepalive` options. · ea36d53f
      JC Brand authored
      It's unlikely that `keepalive` needs to be set to `false`, but there are
      some edge cases where it might be useful.
      
      Here's a breakdown of the different configurations of `keepalive` and `auto_join`:
      
      ---
      
      * auto_login: false, keepalive: true
      
      This is the default config. Users need to log in manually, but then
      Converse will try to reconnect them when the page reloads.
      
      * auto_login: true, keepalive: true
      
      Also very popular configuration. Used with `credentials_url` or `prebind_url`.
      
      * auto_login = `true`, keepalive = `false`
      
      Not sure what this could be useful for. No currently known application.
      
      * auto_login = `false`, keepalive = `false`
      
      Useful when you want some kind of specific action to trigger login, but
      you don't want to maintain that state across page reloads.
      
      Also relevant when using a websocket connection with anonymous login.
      With websocket it's impossible to maintain anonymous sessions across page
      reload because the the session gets removed server-side as soon as the
      websocket connection drops and the server won't accept a full JID with
      password for an anonymous connection anyway (which could happen upon
      page reload when Converse tries to login in again if `keepalive` was `true`).
      ea36d53f