Updating React Client Game State Manually Serverside #1116
Unanswered
ayushnpatel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, what's the best approach to updating react client game state manually? Currently, I have a player move that will skip through multiple phases, but in between those phases there's state changes on the game server side that I want to be able to show the client. However, I don't think the client state gets updated unless the move finally ends, so all of the state change that happens between phases won't be seen on the client side.
I was looking a bit at the server code and seeing when the state updates are sent to the client and it looks like they're sent at the end of the moves. I was wondering if there's anything I can do in this situation, such as pushing state changes to client manually when a phase ends or altering bg.io code in a way that could make that work.
Beta Was this translation helpful? Give feedback.
All reactions