Browse Source

Add `log` method to API.

JC Brand 9 years ago
parent
commit
2805bf8020
2 changed files with 4 additions and 0 deletions
  1. 3 0
      dev.html
  2. 1 0
      src/converse-api.js

+ 3 - 0
dev.html

@@ -57,11 +57,14 @@
             i18n: locales['af'],
             auto_join_rooms: [
                 'discuss@conference.conversejs.org',
+                'prosody@conference.prosody.im',
+                'jdev@conference.jabber.org'
             ],
             auto_reconnect: true,
             bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
             keepalive: true,
             message_carbons: true,
+            message_archiving: 'always',
             play_sounds: true,
             roster_groups: true,
             show_controlbox_by_default: true,

+ 1 - 0
src/converse-api.js

@@ -25,6 +25,7 @@
         'initialize': function (settings, callback) {
             converse.initialize(settings, callback);
         },
+        'log': converse.log,
         'connection': {
             'connected': function () {
                 return converse.connection && converse.connection.connected || false;