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
44e5b4c9
Commit
44e5b4c9
authored
Sep 24, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bosh: only advertise support if the module is enabled
updates #1725
parent
bce8dc91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
src/headless/converse-bosh.js
src/headless/converse-bosh.js
+6
-0
src/headless/converse-core.js
src/headless/converse-core.js
+0
-1
src/headless/converse-disco.js
src/headless/converse-disco.js
+0
-1
No files found.
src/headless/converse-bosh.js
View file @
44e5b4c9
...
...
@@ -8,6 +8,7 @@
* @description
* Converse.js plugin which add support for XEP-0206: XMPP Over BOSH
*/
import
'
strophe.js/src/bosh
'
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
./converse-core
"
;
...
...
@@ -117,6 +118,11 @@ converse.plugins.add('converse-bosh', {
_converse
.
bosh_session
.
save
({
'
jid
'
:
_converse
.
jid
});
}
});
_converse
.
api
.
listen
.
on
(
'
addClientFeatures
'
,
()
=>
_converse
.
api
.
disco
.
own
.
features
.
add
(
Strophe
.
NS
.
BOSH
)
);
/************************ END Event Handlers ************************/
...
...
src/headless/converse-core.js
View file @
44e5b4c9
...
...
@@ -6,7 +6,6 @@
/**
* @module converse-core
*/
import
'
strophe.js/src/bosh
'
;
import
'
strophe.js/src/websocket
'
;
import
*
as
strophe
from
'
strophe.js/src/core
'
;
import
Backbone
from
'
backbone
'
;
...
...
src/headless/converse-disco.js
View file @
44e5b4c9
...
...
@@ -246,7 +246,6 @@ converse.plugins.add('converse-disco', {
// See https://xmpp.org/registrar/disco-categories.html
_converse
.
api
.
disco
.
own
.
identities
.
add
(
'
client
'
,
'
web
'
,
'
Converse
'
);
_converse
.
api
.
disco
.
own
.
features
.
add
(
Strophe
.
NS
.
BOSH
);
_converse
.
api
.
disco
.
own
.
features
.
add
(
Strophe
.
NS
.
CHATSTATES
);
_converse
.
api
.
disco
.
own
.
features
.
add
(
Strophe
.
NS
.
DISCO_INFO
);
_converse
.
api
.
disco
.
own
.
features
.
add
(
Strophe
.
NS
.
ROSTERX
);
// Limited support
...
...
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