[Standards-JIG] Re: [jdev] XMPP Ping method?

Piotr Szturmaj gacek999 at tlen.pl
Sat Nov 4 01:50:25 UTC 2006


>  <iq from='romeo at montague.net/foo' to='juliet at capulet.com/bar'
>      type='set' id='ping123'>
>    <ping xmlns='urn:xmpp:ping'/>
>  </iq>
>
>  <iq from='juliet at capulet.com/bar' to='romeo at montague.net/foo'
>      type='result' id='ping123'/>
>
> And if the other side doesn't support the ping namespace it would return
> an error (which accomplishes the same purpose):
>
>  <iq type='error' id='ping234'>
>    <ping xmlns='urn:xmpp:ping'/>
>    <error type='cancel'>
>      <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
>    </error>
>  </iq>
>
> IMHO we don't need stream feature negotiation to do pings, but we do
> need that for per-stanza acks (which are heavier).
>
> Thoughts?

I think it's the best approach, however initial iq should be of type "get" 
instead of "set" IMHO 






More information about the Standards mailing list