|
@@ -294,6 +294,25 @@ Also available as an `ES2015 Promise <http://es6-features.org/#PromiseUsage>`_:
|
|
|
// Your code here...
|
|
|
});
|
|
|
|
|
|
+privateChatsAutoJoined
|
|
|
+~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+Emitted once any private chats have been automatically joined as specified by
|
|
|
+the _`auto_join_private_chats` settings.
|
|
|
+
|
|
|
+.. code-block:: javascript
|
|
|
+
|
|
|
+ _converse.api.listen.on('privateChatsAutoJoined', function () { ... });
|
|
|
+
|
|
|
+Also available as an `ES2015 Promise <http://es6-features.org/#PromiseUsage>`_.
|
|
|
+
|
|
|
+.. code-block:: javascript
|
|
|
+
|
|
|
+ _converse.api.waitUntil('privateChatsAutoJoined').then(function () {
|
|
|
+ // Your code here...
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
reconnecting
|
|
|
~~~~~~~~~~~~
|
|
|
|
|
@@ -311,24 +330,14 @@ have to be registered anew.
|
|
|
|
|
|
_converse.api.listen.on('reconnected', function () { ... });
|
|
|
|
|
|
+registeredGlobalEventHandlers
|
|
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
-privateChatsAutoJoined
|
|
|
-~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+Called once Converse has registered its global event handlers (for events such
|
|
|
+as window resize or unload).
|
|
|
|
|
|
-Emitted once any private chats have been automatically joined as specified by
|
|
|
-the _`auto_join_private_chats` settings.
|
|
|
-
|
|
|
-.. code-block:: javascript
|
|
|
-
|
|
|
- _converse.api.listen.on('privateChatsAutoJoined', function () { ... });
|
|
|
-
|
|
|
-Also available as an `ES2015 Promise <http://es6-features.org/#PromiseUsage>`_.
|
|
|
-
|
|
|
-.. code-block:: javascript
|
|
|
-
|
|
|
- _converse.api.waitUntil('privateChatsAutoJoined').then(function () {
|
|
|
- // Your code here...
|
|
|
- });
|
|
|
+Plugins can listen to this event as cue to register their own global event
|
|
|
+handlers.
|
|
|
|
|
|
roomsAutoJoined
|
|
|
---------------
|