xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.19k stars 372 forks source link

@xmpp/component docs #806

Closed toriqo closed 4 years ago

toriqo commented 4 years ago

How is this suppose to work? It always returns <service-unavailable/> event though I return a different stanza from .on('stanza')...

sonnyp commented 4 years ago

https://github.com/xmppjs/xmpp.js/tree/master/packages/iq#callee

accessible via component.iqCallee

toriqo commented 4 years ago

thanks but no matter where i use iqCallee.set('foo:bar', 'foo', (ctx) => { return xml('foo', {xmlns: 'foo:bar'}) }); it doesn't change anything...

toriqo commented 4 years ago

nvm, solved it :) docs could be a little more detailed about it :)

sonnyp commented 4 years ago

Suggestions, or even better PR are welcome.