From Ape Wiki
[edit] RAW
The answers of the server are called RAWs and are sent as a JSON Object. Here is a non exhaustive list of RAWs :
- Received message, Login, Error, ...
[edit] RAW Formatting
RAWs are formatted as the following :
{"raw":"LOGIN","time":"1241917853","datas":{"sessid":"fe9f5ee27889b8d67ff99d35b77aa12f"}}
Here the RAW is "LOGIN" identified by the key "raw".
All the objects are sent by the server as the following :
[
Object :
raw: <value>
time: <value> (unixtime)
data: <Objet>
]
Those tree keys (raw, time and data) are common to all the objects.
[edit] Multiple RAW sending
APE can also send multiple RAW at once :
[
{"raw":"LOGIN","time":"1241917853","datas":{"sessid":"fe9f5ee27889b8d67ff99d35b77aa12f"}},
{"raw":"IDENT","time":"1241917853","datas":{"user":{"properties":{"name":"oozoy"},"casttype":"uni","pubid":"5150599277195552aa2aeb5f82f997e4"}}}
]
Here, APE sent the RAW "LOGIN" following by the RAW "IDENT".


