Package org.xmpp.muc

Class LeaveRoom


@NotThreadSafe public class LeaveRoom extends Presence
Initial presence sent when joining an existing room or creating a new room. The JoinRoom presence indicates the posibility of the sender to speak MUC.

Code example:

 // Join an existing room or create a new one.
 JoinRoom joinRoom = new JoinRoom("john@jabber.org/notebook", "room@conference.jabber.org/nick");

 component.sendPacket(joinRoom);
 
Author:
Gaston Dombiak
  • Constructor Details

    • LeaveRoom

      public LeaveRoom(String from, String to)
      Creates a new Presence packet that could be sent to a MUC service in order to leave the room.
      Parameters:
      from - the full JID of the user that wants to leave the room.
      to - the room JID. That is the room address plus the nickname of the user as a resource.