Return game data for Incompleted Gameplays
๐ฎ Description
Command 23 โ Return Game Data for Incomplete Gameplays
This endpoint returns the gameid and gameplayid of the oldest incomplete game session for a given user. The oldest incomplete game must be opened and completed, before other games can be launched by this user.
Use this to detect and resume interrupted sessions, ensuring proper game flow and fairness within your application.
๐ Sample JSON Request (from your server to the RGS-CWS server)
{ "command": "23", "login": "demoaccount" }๐ Note: Field names and values are case-sensitive.
๐ฅ Input Parameters (from your server to the RGS-CWS server)
๐ Sample JSON Responses (from RGS-CWS to your server)
โ Success โ Incomplete gameplay found:
{ "message": "OK", "gameid": 857, "gameplayid": 441215 }โ Success โ No incomplete gameplay found:
{ "message": "OK", "gameid": 0, "gameplayid": 0 }โ Failure โ Invalid user:
{ "message": "ERROR" }๐ค Output Parameters
โ Operator Notes
This function is used to enforce completion of unfinished sessions before allowing new games.
A user cannot start a new game if a previous game has a recorded session marked as incomplete, therefore this command solves the problem
You can redirect the player to resume the game using the returned
gameidandgameplayid.Incomplete sessions are most often the result of abrupt disconnects during bonus rounds or freespins.
Use this check during your game launcher logic to auto-resume incomplete sessions when needed.