strophejs-plugins | The Strophe.js plugins repo has moved to https | Plugin library
kandi X-RAY | strophejs-plugins Summary
kandi X-RAY | strophejs-plugins Summary
The Strophe.js plugins repo has moved to
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of strophejs-plugins
strophejs-plugins Key Features
strophejs-plugins Examples and Code Snippets
Community Discussions
Trending Discussions on strophejs-plugins
QUESTION
Here I've found that there's an ability to add a callback as the 3rd argument to a leave
method: https://github.com/metajack/strophejs-plugins/blob/96da306f5394b901e190a3f7365fbbb676fddb51/muc/strophe.muc.js#L117
But it doesn't work. How to add a callback or something else to a instance.connection.muc.leave() method to make sure that a chat-room was left successfully? Maybe there are some more ways to make sure that we have left a chat-room?
...ANSWER
Answered 2018-Sep-06 at 12:16I think there is a mistake in the plugin itself
They use presenceid (stanza id) attribute to match a response from server https://github.com/metajack/strophejs-plugins/blob/master/muc/strophe.muc.js#L146
but not all the servers use stanza id in presences. Actually there is nothing about presence ID in XEP-0045 exit presence, so some servers may implement an ID echo logic but mostly not (and looks like your XMPP server as well)
So I recommend to set this header by yourself, w/o 'presenceid':
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install strophejs-plugins
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page