One reason I wish to return this information is so as to avoid an extra
initial call to the server by detecting whether jabber:iq:register
support exists, as the In-band Registration protocol adds a
<stream:features> child:
http://www.xmpp.org/extensions/xep-0077.html#streamfeature . There are
also other stream feature elements that might be sent:
http://www.xmpp.org/registrar/stream-features.html
thanks,
Brett
The client code should be shielded as much as possible from the phase
of stream set-up. Obviously this ideal can't be attained in the case
of errors, but we should try to stick to it for normal operation. For
your use case, I think you could save stream features and make them
available as a (read-only, of course) attribute of the session object.
On Tue, Sep 16, 2008 at 2:57 AM, Brett Zamir <bre...@gmail.com> wrote:One reason I wish to return this information is so as to avoid an extra initial call to the server by detecting whether jabber:iq:register support exists, as the In-band Registration protocol adds a <stream:features> child: http://www.xmpp.org/extensions/xep-0077.html#streamfeature . There are also other stream feature elements that might be sent: http://www.xmpp.org/registrar/stream-features.htmlThe client code should be shielded as much as possible from the phase of stream set-up. Obviously this ideal can't be attained in the case of errors, but we should try to stick to it for normal operation.
For your use case, I think you could save stream features and make them available as a (read-only, of course) attribute of the session object.