Attribute
Meaning
sendTo
Name of the client you want to send a private message to.
type
A type of a private message. The serve is now using the following values:
1. type="message", is used when sending a simple private message.
2. type="challenge", is used for an invitation appeal for a game.
3. type= "answer", is used to reply to the invitation appeal for a game.
data
Everything you will put to the section , will be sent to the client. The section dates must, of course, be in a valid XML format.
errorCode
Error description
31
No receiver of the message has been inserted.
32
The message didn't contain the section dates.
33
There is no client with this name.
34
The message couldn't be sent.
XML message of the server to other clients
<protocol>
<received action="userMsg" sentFrom="test3" type="message">
<data><game position="27" time="12"/></data>
</received>
</protocol>
Attribute
Meaning
sentFrom
Name of the client that sent the message.
type
A type of a private message.
data
In this section the information, that are sent by the client, are included.