[swift-users] Accessing stream:features in a swiften app

Matthieu Volat mazhe at alkumuna.eu
Sat Oct 31 10:30:30 UTC 2020


Hi,

I’d like to have a look at xep-0352 (client state indication) and later xep-0237 (roster versioning) in a swiften-based application, but server support for both these mechanisms is announced in the stream:features element that it seems I cannot really hook to in the Swift::Client class (can’t I?)… and there is no method either to check for those capabilities.

In which way would you retrieve stream:features in such a case? Using Swift::Client::onDataRead() to parse myself stanzas up to auth is not very elegant…

Thanks,

— Matthieu Volat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: </lists/pipermail/swift-users/attachments/20201031/8bcde549/attachment.sig>


More information about the swift-users mailing list