Add long polling for game state #4
Loading…
Reference in a new issue
No description provided.
Delete branch "asonix/long-polling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement long polling for state updates
other than the one comment I had, lgtm, idrk what long polling is though
@ -66,0 +68,4 @@
Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, serde::Deserialize, serde::Serialize,
)]
#[serde(rename_all = "camelCase")]
pub(crate) enum GameState {
Imo could be a better name, since GameState at least to me is the state of the entire game and all of its information, like where pieces are, etc. Unfortunately I don't have a better name off the top of my head.
Win/Lose values seem slightly ambiguous since it's not specified for which player.