1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-28 12:12:22 -05:00

Merge pull request #106 from sstrigler/xep-0060

XEP-0060: be more consistent with reply
This commit is contained in:
Sam Whited 2016-10-11 08:29:24 -07:00 committed by GitHub
commit c04fc263bd

View File

@ -1509,12 +1509,20 @@ And by opposing end them?
]]></example> ]]></example>
</section3> </section3>
<section3 topic='Success Case' anchor='subscriber-unsubscribe-success'> <section3 topic='Success Case' anchor='subscriber-unsubscribe-success'>
<p>If the request can be successfully processed, the service MUST return an IQ result.</p> <p>If the request can be successfully processed, the service MUST return an IQ result and MAY include a &PUBSUB; child element with the updated &lt;subscription/&gt; element for that node. If subscription identifiers are supported by the service, the 'subid' attribute MUST be present as well.</p>
<example caption='Service replies with success'><![CDATA[ <example caption='Service replies with success'><![CDATA[
<iq type='result' <iq type='result'
from='pubsub.shakespeare.lit' from='pubsub.shakespeare.lit'
to='francisco@denmark.lit/barracks' to='francisco@denmark.lit/barracks'
id='unsub1'/> id='unsub1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<subscription
node='princely_musings'
jid='francisco@denmark.lit'
subscription='none'
subid='ba49252aaa4f5d320c24d3766f0bdcade78c78d3'/>
</pubsub>
</iq>
]]></example> ]]></example>
</section3> </section3>
<section3 topic='Error Cases' anchor='subscriber-unsubscribe-error'> <section3 topic='Error Cases' anchor='subscriber-unsubscribe-error'>