For front-ends, we should have a "long polling" RPC method that blocks until the current game state is updated. It could simply be waitforchange without any arguments and without returning anything. The front-end could then call that method, and once it returns, call another method to read the current data - like getcurrentstate, but it could also be a game-specific method that reads just data for the currently shown UI.
For front-ends, we should have a "long polling" RPC method that blocks until the current game state is updated. It could simply be
waitforchange
without any arguments and without returning anything. The front-end could then call that method, and once it returns, call another method to read the current data - likegetcurrentstate
, but it could also be a game-specific method that reads just data for the currently shown UI.