pluggable.js | JS project pluggable while still keeping sensitive objects | REST library
kandi X-RAY | pluggable.js Summary
kandi X-RAY | pluggable.js Summary
pluggable.js is a tiny library that lets you make your JS project extendable via plugins, while still keeping sensitive objects and data private through closures. It was originally written for converse.js, to provide a plugin architecture that allows 3rd party developers to extend and override private objects and classes, but it does not require nor depend on either library. Pluggable.js is only 2.5KB when minified and uncompressed.
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 pluggable.js
pluggable.js Key Features
pluggable.js Examples and Code Snippets
Community Discussions
Trending Discussions on pluggable.js
QUESTION
sorry to bother anyone,but i really need help for this,i want to retrieve chat from database(which i already ask this question before),but i try to googling and read all the documentation,and i assumed that i have found the solution,i read the converse.js documentation about developer api,in the Archiving group section,and i got this :
...ANSWER
Answered 2017-Oct-23 at 11:53The initialize
method of a Converse.js plugin gets called when Converse.js itself gets initialized.
This happens before the user has been logged in (regardless whether that happens automatically or manually).
So you're calling this._converse.api.archive.query({'with': 'admin2@localhost'});
before the user has been logged and an XMPP connection and session has been established.
Instead, you should first listen for the connection
event, and then do your query.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pluggable.js
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