mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 12:12:22 -05:00
Participants node clarification
This commit is contained in:
parent
d17de7d7c4
commit
69919545c2
43
xep-0369.xml
43
xep-0369.xml
@ -43,6 +43,8 @@
|
|||||||
<remark><p>
|
<remark><p>
|
||||||
Fix xmpp:nodes typos;
|
Fix xmpp:nodes typos;
|
||||||
Remove namespace references in Info/Config nodes;
|
Remove namespace references in Info/Config nodes;
|
||||||
|
Modify Participant and JID Map syntaxes;
|
||||||
|
Clarifications on subscription to participants node and using this to receive Nick changes;
|
||||||
</p></remark>
|
</p></remark>
|
||||||
</revision>
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
@ -488,14 +490,17 @@ This approach enables flexible support of multiple clients for a MIX channel pa
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
When a user joins a channel, the user's bare JID is added to the participants node by the MIX service. When a user leaves a channel, they are removed from the participants node. The participants node MUST NOT be directly modified using pubsub.
|
When a user joins a channel, the user's bare JID is added to the participants node by the MIX service. When a user leaves a channel, they are removed from the participants node. The participants node MUST NOT be directly modified using pubsub.
|
||||||
This node MAY be subscribed to for jid-visible channels that permit subscription to this node - this will allow users to see changes to the channel participants.
|
</p>
|
||||||
|
<p>
|
||||||
|
Users MAY subscribe to and read information this node, when permitted by the channel. Standard PubSub access will allow a full list of participants and associated nicks to be determined. By subscribing to the node, a user will be informed of changes to the Participants Node.
|
||||||
</p>
|
</p>
|
||||||
<p>The participants node is OPTIONAL. If the Participants Node is not used, information on channel participants is not shared. If there is no participants node, the access control value 'participants' MUST NOT be used. The Participants node is a permanent node with one item per participant.</p>
|
<p>The participants node is OPTIONAL. If the Participants Node is not used, information on channel participants is not shared. If there is no participants node, the access control value 'participants' MUST NOT be used. The Participants node is a permanent node with one item per participant.</p>
|
||||||
<example caption="Value of Participants Node"><![CDATA[
|
<example caption="Value of Participants Node"><![CDATA[
|
||||||
<items node='urn:xmpp:mix:nodes:participants'>
|
<items node='urn:xmpp:mix:nodes:participants'>
|
||||||
<item id='123456#coven@mix.shakespeare.example'>
|
<item id='123456#coven@mix.shakespeare.example'>
|
||||||
<participant xmlns='urn:xmpp:mix:0'
|
<participant xmlns='urn:xmpp:mix:0'>
|
||||||
nick='thirdwitch'/>
|
<nick>thirdwitch</nick>
|
||||||
|
</participant>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
]]></example>
|
]]></example>
|
||||||
@ -508,8 +513,9 @@ This approach enables flexible support of multiple clients for a MIX channel pa
|
|||||||
<example caption="Value of JID Map Node"><![CDATA[
|
<example caption="Value of JID Map Node"><![CDATA[
|
||||||
<items node='urn:xmpp:mix:nodes:jidmap'>
|
<items node='urn:xmpp:mix:nodes:jidmap'>
|
||||||
<item id='123456#coven@mix.shakespeare.example'>
|
<item id='123456#coven@mix.shakespeare.example'>
|
||||||
<participant xmlns='urn:xmpp:mix:0'
|
<participant xmlns='urn:xmpp:mix:0'>
|
||||||
jid='hecate@mix.shakespeare.example'/>
|
<jid>hecate@mix.shakespeare.example</jid>
|
||||||
|
</participant>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
]]></example>
|
]]></example>
|
||||||
@ -885,8 +891,16 @@ This approach enables flexible support of multiple clients for a MIX channel pa
|
|||||||
type='result'>
|
type='result'>
|
||||||
<pubsub xlns='http://jabber.org/protocol/pubsub'>
|
<pubsub xlns='http://jabber.org/protocol/pubsub'>
|
||||||
<items node='urn:xmpp:mix:nodes:participants'>
|
<items node='urn:xmpp:mix:nodes:participants'>
|
||||||
<item jid='123456#coven@mix.shakespeare.example' nick='thirdwitch'>
|
<item id='123456#coven@mix.shakespeare.example'>
|
||||||
<item jid='87123#coven@mix.shakespeare.example' nick='top witch'>
|
<participant xmlns='urn:xmpp:mix:0'>
|
||||||
|
<nick>thirdwitch</nick>
|
||||||
|
</participant>
|
||||||
|
</item>
|
||||||
|
<item id='87123#coven@mix.shakespeare.example'>
|
||||||
|
<participant xmlns='urn:xmpp:mix:0'>
|
||||||
|
<nick>top witch</nick>
|
||||||
|
</participant>
|
||||||
|
</item>
|
||||||
</items>
|
</items>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
<items>
|
<items>
|
||||||
@ -1396,6 +1410,11 @@ This approach enables flexible support of multiple clients for a MIX channel pa
|
|||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>On success, the service informs the user of its nick. MIX SHOULD apply the "nickname" profile of the PRECIS OpaqueString class, as defined in &rfc7700; to the requested nick. This means that nick that is issued might be different from the nick that was requested.</p>
|
<p>On success, the service informs the user of its nick. MIX SHOULD apply the "nickname" profile of the PRECIS OpaqueString class, as defined in &rfc7700; to the requested nick. This means that nick that is issued might be different from the nick that was requested.</p>
|
||||||
|
<p>
|
||||||
|
When an Nick is assigned, the MIX server MUST update the Participants Node in the channel to reflect this change. Any users subscribed to this node will be notified of the change of Nick.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>The following example shows an example of reporting successful Nick assignment.</p>
|
||||||
<example caption="Service Returns User of Nick"><![CDATA[
|
<example caption="Service Returns User of Nick"><![CDATA[
|
||||||
<iq type='result'
|
<iq type='result'
|
||||||
to='mix.shakespeare.example'
|
to='mix.shakespeare.example'
|
||||||
@ -1511,8 +1530,9 @@ This approach enables flexible support of multiple clients for a MIX channel pa
|
|||||||
<pubsub xlns='http://jabber.org/protocol/pubsub'>
|
<pubsub xlns='http://jabber.org/protocol/pubsub'>
|
||||||
<items node='urn:xmpp:mix:nodes:jidmap'>
|
<items node='urn:xmpp:mix:nodes:jidmap'>
|
||||||
<item id='123456#coven@mix.shakespeare.example'>
|
<item id='123456#coven@mix.shakespeare.example'>
|
||||||
<participant xmlns='urn:xmpp:mix:0'
|
<participant xmlns='urn:xmpp:mix:0'>
|
||||||
jid='hecate@mix.shakespeare.example'/>
|
<jid>hecate@mix.shakespeare.example<jid/>
|
||||||
|
</participant>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
@ -1552,8 +1572,9 @@ This approach enables flexible support of multiple clients for a MIX channel pa
|
|||||||
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
||||||
<items node='urn:xmpp:mix:nodes:jidmap'>
|
<items node='urn:xmpp:mix:nodes:jidmap'>
|
||||||
<item id='123456#coven@mix.shakespeare.example'>
|
<item id='123456#coven@mix.shakespeare.example'>
|
||||||
<participant xmlns='urn:xmpp:mix:0'
|
<participant xmlns='urn:xmpp:mix:0'>
|
||||||
jid='hecate@mix.shakespeare.example'/>
|
<jid>hecate@mix.shakespeare.example<jid/>
|
||||||
|
</participant>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
</event>
|
</event>
|
||||||
|
Loading…
Reference in New Issue
Block a user