setVariable - Setting of the variable in the room to a certain value
XML request, sent by the client to the server
<protocol>
      <setVariable [sid="2"]>
           <data name="a">67</data> 
      </setVariable>
</protocol>
                    
Attribute
Meaning
name
Name of the variable in the room, whose value we want to change.
value
Value of the variable.
XML response of the server to the client
<protocol>
      <response action="setVariable" errorCode="0" [sid="2"]/>
</protocol>
                    
errorCode
Error description
221
Such a variable does not exist in the room.
222
The message to your clients about change of the variable could not be sent.
XML message of the server to other clients
<protocol>
      <received action="setVariable" sentFrom="test">
            <data><a>67</a></data>
      </received>
</protocol>
                        
Attribute
Meaning
sentFrom
Name of the client who changed the variable.
data
In the section data the name of the changed variable and its value are defined.