mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-22 01:02:17 -05:00
updated examples per XEP-0115
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@1931 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
a9d721be32
commit
99194d9a46
17
xep-0163.xml
17
xep-0163.xml
@ -269,8 +269,9 @@
|
|||||||
<example caption='Romeo sends presence with caps'><![CDATA[
|
<example caption='Romeo sends presence with caps'><![CDATA[
|
||||||
<presence from='romeo@montague.lit/orchard'>
|
<presence from='romeo@montague.lit/orchard'>
|
||||||
<c xmlns='http://jabber.org/protocol/caps'
|
<c xmlns='http://jabber.org/protocol/caps'
|
||||||
node='http://www.chatopus.com/ec'
|
hash='sha-1'
|
||||||
ver='054H4A7280JuT6+IroVYxgCAjZo='/>
|
node='http://www.chatopus.com'
|
||||||
|
ver='zHyEOgxTrkpSdGcQKH8EFPLsriY='/>
|
||||||
</presence>
|
</presence>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>Your server knows to send tune information to Romeo because when the server unpacks the value of the 'ver' attribute ("054H4A7280JuT6+IroVYxgCAjZo=") in accordance with <cite>XEP-0115</cite>, it discovers that Romeo's client advertises a service discovery feature of "http://jabber.org/protocol/tune+notify", where the "+notify" suffix indicates interest in receiving notifications related to the protocol that precedes the suffix. The server can verify this support if needed by sending a service discovery request to Romeo's full JID, where the response would be as follows:</p>
|
<p>Your server knows to send tune information to Romeo because when the server unpacks the value of the 'ver' attribute ("054H4A7280JuT6+IroVYxgCAjZo=") in accordance with <cite>XEP-0115</cite>, it discovers that Romeo's client advertises a service discovery feature of "http://jabber.org/protocol/tune+notify", where the "+notify" suffix indicates interest in receiving notifications related to the protocol that precedes the suffix. The server can verify this support if needed by sending a service discovery request to Romeo's full JID, where the response would be as follows:</p>
|
||||||
@ -398,17 +399,17 @@
|
|||||||
<example caption='Subscriber sends presence from newly-available resource'><![CDATA[
|
<example caption='Subscriber sends presence from newly-available resource'><![CDATA[
|
||||||
<presence from='romeo@montague.lit/orchard'>
|
<presence from='romeo@montague.lit/orchard'>
|
||||||
<c xmlns='http://jabber.org/protocol/caps'
|
<c xmlns='http://jabber.org/protocol/caps'
|
||||||
node='http://www.chatopus.com/ec'
|
hash='sha-1'
|
||||||
ver='2.1'
|
node='http://www.chatopus.com'
|
||||||
ext='sendmeloc sendmetunes'/>
|
ver='zHyEOgxTrkpSdGcQKH8EFPLsriY='/>
|
||||||
</presence>
|
</presence>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='Subscriber's server sends presence from newly-available resource to publisher's bare JID (i.e., PEP service)'><![CDATA[
|
<example caption='Subscriber's server sends presence from newly-available resource to publisher's bare JID (i.e., PEP service)'><![CDATA[
|
||||||
<presence from='romeo@montague.lit/orchard' to='juliet@capulet.lit'>
|
<presence from='romeo@montague.lit/orchard' to='juliet@capulet.lit'>
|
||||||
<c xmlns='http://jabber.org/protocol/caps'
|
<c xmlns='http://jabber.org/protocol/caps'
|
||||||
node='http://www.chatopus.com/ec'
|
hash='sha-1'
|
||||||
ver='2.1'
|
node='http://www.chatopus.com'
|
||||||
ext='sendmeloc sendmetunes'/>
|
ver='zHyEOgxTrkpSdGcQKH8EFPLsriY='/>
|
||||||
</presence>
|
</presence>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='PEP service sends last published item to newly-available resource'><![CDATA[
|
<example caption='PEP service sends last published item to newly-available resource'><![CDATA[
|
||||||
|
Loading…
Reference in New Issue
Block a user