Description
-
Adds new chat room on the list.
Return Type
-
XMPPChatRoom object.
Syntax
-
object.Add Name, Service
The Add Method syntax has these parts:
| object |
An expression evaluating to an object
of type XMPPChatRooms. |
| Name |
Required. A String value. Name of new chat room. |
| Service |
Required. A Variant value. Reference to service
that provides this room. |
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.
|