XEP-0402: Add two examples of notifications.

This commit is contained in:
Emmanuel Gil Peyrot 2019-09-27 23:03:58 +02:00
parent 0a237b1b9c
commit d40429b5ab
1 changed files with 26 additions and 0 deletions

View File

@ -205,6 +205,32 @@
<section1 topic="Bookmark Notifications">
<p>When a client is sent an event from the Pubsub service for the '&namespace;' node, it MUST check the 'autojoin' attribute if present, and join the room immediately if the attribute is both present and true.</p>
<example caption='Client receives a new bookmark notification'><![CDATA[
<message from='juliet@capulet.lit' to='juliet@capulet.lit/balcony' type='headline' id='new-room1'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='urn:xmpp:bookmarks:0'>
<item id='theplay@conference.shakespeare.lit'>
<conference xmlns=']]>&namespace;<![CDATA['
name='The Play&apos;s the Thing'
autojoin='1'>
<nick>JC</nick>
</conference>
</item>
</items>
</event>
</iq>
]]></example>
<example caption='Client receives a bookmark retraction notification'><![CDATA[
<message from='juliet@capulet.lit' to='juliet@capulet.lit/balcony' type='headline' id='removed-room1'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='urn:xmpp:bookmarks:0'>
<retract id='theplay@conference.shakespeare.lit'/>
</items>
</event>
</iq>
]]></example>
</section1>
<section1 topic="Implementation Notes">