Browse Source

Set `auto_reconnect` to `true` by default.

JC Brand 7 years ago
parent
commit
56aa45b1d3
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGES.md
  2. 1 1
      src/converse-core.js

+ 1 - 0
CHANGES.md

@@ -18,6 +18,7 @@ though they should be private._
 - New API method `_converse.disco.getIdentity` to check whether a JID has a given identity.
 - New API method `_converse.disco.getIdentity` to check whether a JID has a given identity.
 
 
 ### Configuration settings
 ### Configuration settings
+- `auto_reconnect` is now set to `true` by default.
 - New configuration setting [allow_public_bookmarks](https://conversejs.org/docs/html/configurations.html#allow-public-bookmarks)
 - New configuration setting [allow_public_bookmarks](https://conversejs.org/docs/html/configurations.html#allow-public-bookmarks)
 - New configuration setting [root](https://conversejs.org/docs/html/configurations.html#root)
 - New configuration setting [root](https://conversejs.org/docs/html/configurations.html#root)
 
 

+ 1 - 1
src/converse-core.js

@@ -288,7 +288,7 @@
             authentication: 'login', // Available values are "login", "prebind", "anonymous" and "external".
             authentication: 'login', // Available values are "login", "prebind", "anonymous" and "external".
             auto_away: 0, // Seconds after which user status is set to 'away'
             auto_away: 0, // Seconds after which user status is set to 'away'
             auto_login: false, // Currently only used in connection with anonymous login
             auto_login: false, // Currently only used in connection with anonymous login
-            auto_reconnect: false,
+            auto_reconnect: true,
             auto_subscribe: false,
             auto_subscribe: false,
             auto_xa: 0, // Seconds after which user status is set to 'xa'
             auto_xa: 0, // Seconds after which user status is set to 'xa'
             blacklisted_plugins: [],
             blacklisted_plugins: [],