Home > other >  Consult a chess game with the game, one party timeout does not play, how to learn and process on the
Consult a chess game with the game, one party timeout does not play, how to learn and process on the

Time:09-21

Generally round game are time limitation, so if one side within the time schedule of the (like 30 seconds) did not perform the operation, and may be due to abnormal disconnection, the server can't immediately known, under the condition of the server?

I use HTML 5 + webosket want to make a small card games, play the countdown timer on the client, if the user is not dropped, did not perform the operation, the client can force to help users to walk the one step, and notify the server, but if other reasons, failed to notify the server, the server how to know already to 30 seconds? The server and no timer, just according to customer's request for processing

CodePudding user response:

You use what configuration of the server now

CodePudding user response:

This is not difficult, the most basic is the server is better, higher defense, we chat, bother you to add enterprise QQ2885160160, Thai nightfall,

CodePudding user response:

"Server and no timer", then add a timer,
  • Related