mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
correct retract to use pubsub syntax;
This commit is contained in:
parent
444f690277
commit
291c69d45c
22
xep-0369.xml
22
xep-0369.xml
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user