Some times client user doesn't recives values from the server.

0 votes
I have noticed that some times the server doesn't send the values to the client which result that both the client and the host user's have there opponent's move.

I am using setCustomRoomData and sendUpdatePeer to send data.
asked Apr 2, 2014 in AppWarp by appon.publish (10 points)

1 Answer

0 votes
Can you tell us which event specifically is being missed? Also a more complete description of your scenario would be helpful.
answered Apr 2, 2014 by dhruvc (1,099 points)
I am sending my custom data whenever user touch on device. I get the response in onGetLiveRoomInfoDone. I have tried using log to print the custom data that is received. Most of the time i get the custom data but sometime no response is received from the server (onGetLiveRoomInfoDone dosen't get called).
The callback for setCustomRoomData is onSetCustomRoomDataDone.

The callback for getLiveRoomInfo is onGetLiveRoomInfoDone.
First i have set custom room data and then i have called sendUpdatePeer to send custom data. Now in onUpdatePeersRecieved i have call getLiveRoomInfo to get my custom data in onGetLiveRoomInfoDone.
Hi,
This seems like a quite complicated way to achieve what you are trying to do. Probably an easier way would be to use room properties. Clients can simply update them and other clients get notified when they are updated.

You can read about room properties here
http://appwarp.shephertz.com/game-development-center/matchmaking-basic-concept/#room-properties

We also have an android sample which uses room properties for this
http://appwarp.shephertz.com/game-development-center/fruity-monster/
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...