roomMsg - Sending of a message to all clients logged in the room
XML request, sent by the client to the server
<protocol>
      <roomMsg [sid="4"]>
            <data><game position="27" time="12"/></data>
      </roomMsg>
</protocol>
                    
Attribute
Meaning
data
Everything you will put to the section <data ... ></data> , will be sent to all the clients logged in the room. The section dates must, of course, be in a valid XML format.
Note: The client can only communicate with clients logged in the same room.
XML response of the server to the client
<protocol>
       <response action="roomMsg" errorCode="0" [sid="4"]/>
</protocol>
                    
errorCode
Error description
41
The message didn't contain the section dates.
42
There are no clients in the room you are logged in.
43
The message couldn't be sent to all clients logged in the room.
XML message of the server to other clients
<protocol>
      <received action="roomMsg" sentFrom="test3">
           <data><game position="27" time="12"/></data>
      </received>
</protocol>
                        
Attribute
Meaning
sentFrom
Name of the client that sent the message.
data
In this section the information, that are sent by the client to other clients in the room, are included.