The communication between client and server is done using json, a request to the server is like `{hash:(number>0),command:"",files?:[MediaFile],...others fields}`, where the hash is the number associated to the request, and the command is the request command, and we can have more other fields depending on the command. The server so need to parse the request string , and based on the commands, return a response in json string format of course, and the client parse that response which must be like `{hash:(number >=0),status:(number>=0),data:any,files?:[MediaFile]}`.