Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
mchhetri #1
Member since Feb 2008 · 6 posts · Location: Melbourne, Australia
Group memberships: Members
Show profile · Link to this post
Subject: How do participants in a Muc room know that it has been destroyed
Hi,

If a client is participating in a muc chat as a normal participant, how does he/she know when the owner of the muc-room destroys the room?

Is this sent out as a Presence or as a Message?

Cheers,
Mohan
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is described here in XE=-0045-Multi-User Chat:
http://www.xmpp.org/extensions/xep-0045.html#destroyroom

The users will get a unavailable presence which looks like this:

  1. <presence
  2.     from='heath@macbeth.shakespeare.lit/firstwitch'
  3.     to='crone1@shakespeare.lit/desktop'
  4.     type='unavailable'>
  5.  <x xmlns='http://jabber.org/protocol/muc#user'>
  6.     <item affiliation='none' role='none'/>
  7.     <destroy jid='darkcave@macbeth.shakespeare.lit'>
  8.       <reason>Macbeth doth come.</reason>
  9.     </destroy>
  10.  </x>
  11. </presence>

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS