Back to product page

Add method


Adds new chat room on the list.

Type

XMPPChatRoom object

Syntax

  • Basic
object.Add (Name, Service)
The Add(object,Name,Service) syntax has these parts:
objectAn expression evaluating to an object of type XMPPChatRooms
NameA String value. Name of new chat room.
ServiceXMPPService object

Remarks

Add method will add new chat room to the collection. After chat room is added, you can Join it and send/receive messages. You should now add chat rooms if you plan to call List method which will download full list from the server. However, since List can download megabytes of data if there are many rooms, sometimes it is more convenient to add room name manually and then just join it directly. This is very useful if you always use same room names.

Add method does not send any commands to the server. You should use Join method instead to create or join the room.

Platforms

Windows