I am creating a game in which I call rest based web services for data communication.
I am able to call and receive data if I make single calls. However I want to reduce number of calls sent to server, for that I have implemented a batch controller on server which can accept multiple requests (game commands) in a single request in the form of JSON and send back the response of each command in JSON format. However on client side I am not able to figure out a proper way implement batching.
Can somebody direct to some design?