-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 9/17/09 8:35 AM, Fabio Forno wrote:
> On Thu, Sep 17, 2009 at 4:25 PM, Peter Saint-Andre <[email protected]> wrote:
> 
>>> The problem is that they don't
>>> completely solve the problem of reliability
>> Reliability is like security -- there is always some other small aspect
>> that prevents you from reaching 100%.
> 
> Yep but in this case the aspect is not so small  ;)
> 
>>> since I may send a message
>>> just before receiving an unavailable,
>> With IQs you will receive an error.
>>
>>> not to mention flaky
>>> connections...
>> XEP-0198 is your friend. :)
>>
> 
> Apparently too much of server developers ;) 

To be fair, XEP-0198 became solid only recently. There are release
schedules and such.

> The great advantage of IQs
> + Presence is that I can make it work without modifying anything today

I've added the following subsection to my working copy.

***

12.4.1 IQ Notifications

If the pubsub service supports presence-based delivery and a node is
configured to enable such delivery, the service MAY offer a value of
"iq" for the "pubsub#notification_type" node configuration option. If
this value is chosen, the service shall deliver notifications in XMPP IQ
stanzas instead of in XMPP message stanzas. Because IQ stanzas are
addressed to full JIDs <[email protected]/resource>, if the service
does not know the full JID of a given subscriber then it MAY send
notifications to the bare JID <[email protected]> of the subscriber
via the usual message stanza, or MAY not send a notification at all. The
IQ stanza containing a notification shall be of type "set", and in
accordance with the semantics of the IQ stanza defined in RFC 3920 the
recipient MUST return either an IQ stanza of type "result" or an IQ
stanza of type "error". An example follows

Example 211. Service Notifies Subscriber via IQ

<iq from='pubsub.shakespeare.lit'
    id='jc9jn253'
    to='[email protected]/barracks'
    type='set'>
  <event xmlns='http://jabber.org/protocol/pubsub#event'>
    <items node='princely_musings'>
      <item id='ae890ac52d0df67ed7cfdf51b644e901'>
        [ ... ENTRY ... ]
      </item>
    </items>
  </event>
</iq>


Example 212. Subscriber Indicates Success

<iq from='[email protected]/barracks'
    id='jc9jn253'
    to='pubsub.shakespeare.lit'
    type='result'/>

***


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrCiVYACgkQNL8k5A2w/vwSVwCfRQdYfRY1P0vVXUwTuDj13L7I
QNEAn0UtS8L5IQ/kotwUPQdrlDz8Jyuv
=ZLt0
-----END PGP SIGNATURE-----

Reply via email to