correct retract to use pubsub syntax;

This commit is contained in:
Steve Kille 2018-12-11 08:27:48 +00:00
parent 444f690277
commit 291c69d45c
1 changed files with 11 additions and 11 deletions

View File

@ -45,6 +45,7 @@
fix retract id example;
clarify that channels always created with default parameters;
change to reflect that XEP-0004 does not support multiple languages;
correct retract to use pubsub syntax;
editorial;
</p></remark>
</revision>
@ -1097,21 +1098,20 @@
</iq>
]]></example>
<p>When the user leaves the channel, the MIX service is responsible for unsubscribing the user from all nodes in the channel and for removing the user from the participants list. Presence removal is specified in MIX-PRESENCE.
Deletion from the participants node functions as if the item (channel participant) had been deleted using the PubSub retract mechanism with notification set to true. Notification of the participant deletion is sent to clients subscribed to the participants PubSub node, with the node identified by the stable id, as shown in the example below.
</p>
<example caption="Reporting when User Leaves a Channel"><![CDATA[
Deletion from the participants node functions as if the item (channel participant) had been deleted using the PubSub retract mechanism with notification set to true. Notification of the participant deletion is sent to clients subscribed to the participants PubSub node using PubSub protocol, with the node identified by the stable id, as shown in the example below.
</p>
<example caption="Participant Node Subscriber is Notified of Participant Removal"><![CDATA[
<message from='coven@mix.shakespeare.example'
to='hecate@shakespeare.example' id='f5pp2toz'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items xmlns='urn:xmpp:mix:core:0' node='urn:xmpp:mix:nodes:participants'>
<item>
<retract id='123456'/>
</item>
</items>
</event>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<retract node='urn:xmpp:mix:nodes:participants'>
<item id='123456'/>
</retract>
</pubsub>
</message>
]]></example>
</section3>