StanzaJS Discussion - 2020-04-15


  1. Alex Lance: is there a way to decide which plugins to load with the current version? see also: https://github.com/legastero/stanza/issues/377
  2. Lance there is not yet
  3. Alex hm
  4. Alex is there a way to overwrite features? if my client does not support Jingle I don't want to advertise it
  5. Alex similar with some other features from plugins
  6. Lance I'm not entirely certain what's going on in that issue. Just tried it myself, and new just new Client() starts up without plugins
  7. Lance WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. import * as Stanza from 'stanza'; import muc from 'stanza/plugins/muc'; const client = new Stanza.Client({ ..... }); client.use(muc); window.client = client; client.on('*', console.log); client.connect();
  8. Lance that's working for me
  9. Lance gah, copied extra line from console
  10. Lance you can drop features with client.disco.features.get('').delete('some-feature'). just be sure to call client.updateCaps() afterward
  11. Alex Thanks, will try to load only the modules I need then 👍