Join Method
      
 

Description

Joins a chat room.


Return Type

None  


Syntax

object.Join RoomName, Nick, Password, [Service]



The Join Method syntax has these parts:

Part Description
object An expression evaluating to an object of type XMPPChatRooms.
RoomName Required. A String value. Holds name of the room you want to join.
Nick Required. A String value. Holds nickname you would like to use in the chat room.
Password Required. A String value. Holds password, if required.
Service Optional. A Variant value. Holds service that provide chat room.

Remarks

Join method will join the chat room. Once you join the room, you will receive list of contacts in the room and ContactList event will fire. You can access contacts from Contacts collection. Calling Leave method will send 'unavailable' presence to other contacts in that room.

 

RoomName argument can provide full JID of the room, such as test@conference.wippien.com, or it can only provide room name test in which case Service argument must be set too.

 

Nick specifies nickname you would prefer to use. If nickname is taken, Error event will be fired.

 

Password should be set if chat room you wish to join requires one, otherwise leave empty.

 

Service argument may contain reference to the service that provides the chat room, or service JID such as conference.wippien.com.