Add long polling for game state #4

Merged
asonix merged 5 commits from asonix/long-polling into kumu 2022-01-13 23:15:20 +00:00
Owner

Implement long polling for state updates

Implement long polling for state updates
asonix added 1 commit 2022-01-03 02:39:18 +00:00
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
4f88cdc81e
Add long polling for game state
asonix added 1 commit 2022-01-03 02:42:37 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
6010d16cd4
Allow async-yields-async
asonix added 1 commit 2022-01-08 04:09:28 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
8f52495788
Only return board from Poll, add optional PieceKind to Move
asonix added 1 commit 2022-01-08 04:11:10 +00:00
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
730470bf9f
Proper board response naming
asonix added 1 commit 2022-01-08 04:11:34 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
c7aea84979
Proper board response naming 2
Kumu approved these changes 2022-01-13 23:06:30 +00:00
Kumu left a comment
Collaborator

other than the one comment I had, lgtm, idrk what long polling is though

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 {
Collaborator

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.

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.
asonix merged commit 4160032cba into kumu 2022-01-13 23:15:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: asonix/chess-server#4
No description provided.