Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
4e67b420
Commit
4e67b420
authored
May 29, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New event streamFeaturesAdded
parent
291fceeb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
CHANGES.md
CHANGES.md
+1
-0
docs/source/events.rst
docs/source/events.rst
+14
-6
src/converse-core.js
src/converse-core.js
+1
-1
src/converse-disco.js
src/converse-disco.js
+1
-0
No files found.
CHANGES.md
View file @
4e67b420
...
...
@@ -10,6 +10,7 @@
-
#968 Use nickname from VCard when joining a room
-
#1091 There's now only one CSS file for all view modes.
-
#1094 Show room members who aren't currently online
-
#1106 Support for Roster Versioning
-
It's now also possible to edit your VCard via the UI
-
Automatically grow/shrink input as text is entered/removed
-
MP4 and MP3 files when sent as XEP-0066 Out of Band Data, are now playable directly in chat
...
...
docs/source/events.rst
View file @
4e67b420
...
...
@@ -7,7 +7,7 @@
Events and promises
===================
Converse
.js
and its plugins emit various events which you can listen to via the
Converse and its plugins emit various events which you can listen to via the
:ref:`listen-grouping`.
Some of these events are also available as `ES2015 Promises <http://es6-features.org/#PromiseUsage>`_,
...
...
@@ -466,6 +466,14 @@ Similar to `rosterInitialized`, but instead pertaining to reconnection. This
event indicates that the Backbone collections representing the roster and its
groups are now again available after converse.js has reconnected.
serviceDiscovered
~~~~~~~~~~~~~~~~~
When converse.js has learned of a service provided by the XMPP server. See XEP-0030.
``_converse.api.listen.on('serviceDiscovered', function (service) { ... });``
.. _`statusInitialized`:
statusInitialized
...
...
@@ -497,12 +505,12 @@ When own custom status message has changed.
``_converse.api.listen.on('statusMessageChanged', function (message) { ... });``
serviceDiscovered
~~~~~~~~~~~~~~~~~
When converse.js has learned of a service provided by the XMPP server. See XEP-0030.
streamFeaturesAdded
~~~~~~~~~~~~~~~~~~~
``_converse.api.listen.on('serviceDiscovered', function (service) { ... });``
Emitted as soon as Converse has processed the stream features as advertised by
the server. If you want to check whether a stream feature is supported before
proceeding, then you'll first want to wait for this event.
windowStateChanged
~~~~~~~~~~~~~~~~~~
...
...
src/converse-core.js
View file @
4e67b420
// Converse.js
// https://conversejs.org
//
// Copyright (c) 201
2
-2018, the Converse.js developers
// Copyright (c) 201
3
-2018, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
(
function
(
root
,
factory
)
{
...
...
src/converse-disco.js
View file @
4e67b420
...
...
@@ -236,6 +236,7 @@
}
}
});
_converse
.
emit
(
'
streamFeaturesAdded
'
);
}
function
initializeDisco
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment