adminMsg - Sending of a message from the administrator to other clients
The function can only be used by those connected as administrators.
XML request, sent by the client to the server
<protocol>
    <adminMsg who="domain" sendTo="demo1" sid="3">
            <data game="27" time="12">Hello</data>
    </adminMsg>
</protocol>
                    
Attribute
Meaning
who
Name of the group to which we want to send the message. It can reach the values all, domain, room or user.
sendTo
Name of the target group.
If we enter the value who="all"the message is sent to all clients on the server. In this case the parameter sendTo has no meaning.
If we enter who="domain", then we define in the parameter sendTo the name of the domain we want to send the message to. The message will be received by all the clients logged to the domain.
If we enter who="room", then we define in the parameter sendTo the name of the room. The message will be sent to all users in the room.
If we enter who="user,then we define in the parameter sendTo the name of the client. The message will be sent to one client only.
data
Everything you will put to the section <data ... ></data> , will be sent to the client. The section dates must, of course, be in a valid XML format.
XML response of the server to the client
<protocol>
    <response action="adminMsg" errorCode="0" [sid="3"]/>
</protocol>
                    
errorCode
Error description
1010
Parameter "who" is not defined.
1011
Parameter "sendTo" is not defined.
1012
The message did not contain the section data.
1013
The message could not be sent.
1014
No clients are logged in the server.
XML message of the server to other clients
<protocol>
      <received action="adminMsg">
           <data game="27" time="12">Hello</data>
      </received>
</protocol>
                        
Attribute
Meaning
data
In this section the information, that are sent by the administrator, are included.