Hi,
I got a question about JEP 045(Described in 
http://www.jabber.org/jeps/jep-0045.html#enter)
I am providing the contents of this JEP where I am really confused.
Example 18. Jabber User Seeks to Enter a Room (Multi-User Chat)
<presence
    from='[EMAIL PROTECTED]/pda'
    to='[EMAIL PROTECTED]/thirdwitch'>
  <x xmlns='http://jabber.org/protocol/muc'/>
</presence>
Once Jabber user enters a room(in this case [EMAIL PROTECTED]/thirdwitch),
server sends others(in this room) presence to this new user.
Example 19. Service Sends Presence from Existing Occupants to New Occupant
<presence
    from='[EMAIL PROTECTED]/firstwitch'
    to='[EMAIL PROTECTED]/pda'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <item affiliation='owner' role='moderator'/>
  </x>
</presence>
<presence
    from='[EMAIL PROTECTED]/secondwitch'
    to='[EMAIL PROTECTED]/pda'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <item affiliation='admin' role='moderator'/>
  </x>
</presence>

These are the stanzas provided by the JEP 045 specification document. Once the client 
receives
these messages how does it know about the rest of the members in that room. No where 
their
nickname or jid is specified in the presence stanza.
Example 20. Service Sends New Occupant's Presence to All Occupants
<presence
    from='[EMAIL PROTECTED]/thirdwitch'
    to='[EMAIL PROTECTED]/desktop'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <item affiliation='member' role='participant'/>
  </x>
</presence>
<presence
    from='[EMAIL PROTECTED]/thirdwitch'
    to='[EMAIL PROTECTED]/laptop'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <item affiliation='member' role='participant'/>
  </x>
</presence>
<presence
    from='[EMAIL PROTECTED]/thirdwitch'
    to='[EMAIL PROTECTED]/pda'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <item affiliation='member' role='participant'/>
  </x>
</presence>

Here even the case is the same as all the other clients receive the presence of 
[EMAIL PROTECTED]/pda. How does client at [EMAIL PROTECTED]/desktop and 
[EMAIL PROTECTED]/laptop know about presence of [EMAIL PROTECTED]/pda, as this 
jid is not mentioned anywhere.
Any help on this would be great.

Thanks
Raghu
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to