xmppRoomGetParticipants()

This function allows you to query the participants of a chat room.

Synopsis

dyn_string xmppRoomGetParticipants(int clientId, string room);

Parameter

Parameter Description
clientid The unique client id for the client channel. The id is returned by the xmppOpen() function.
room The room (name ) whose participants are queried.("roomname@conference.jabber.at")

Return Value

Returns the participants of a chat room.

Errors

Errors can be queried via getLastError().

Description

This function allows you to query the participants of a chat room.

The following example shows how to query the participants of a chat room.

Anmerkung: You have to replace the code: p = xmppOpen("winccoa.etm@jabber.at","123677", "callback", m); DebugN("xmppOpen:", p); by your own user and password. This code is an example!
#uses "CtrlXmpp"
int p;
main(mapping event)
{
  p = xmppOpen("winccoa.etm@jabber.at","123677");
  DebugN("xmppOpen:", p);
  int s = xmppRoomJoin(p,"testraum@conference.jabber.at", "WinCCOA");
  DebugN("Joined the room:", s);
  DebugTN("room participants", xmppRoomGetParticipants(p, "testraum@conference.jabber.at"));
}

Assignment

XMPP functions

Availability

CTRL