]> git.seodisparate.com - EN605.607.81.SP22_ASDM_Project/commit
Impl conditionally update front-end board
authorStephen Seo <seo.disparate@gmail.com>
Sat, 30 Apr 2022 07:27:43 +0000 (16:27 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 30 Apr 2022 07:44:48 +0000 (16:44 +0900)
commitb2ea79a7f7c63d9b374d7a9d4b1cfc431ab40cd0
tree0d12144747efe8db309c31373161fdd91e6ab8f3
parentb4eaba09c58d354f2b49aae5b5108e050f532866
Impl conditionally update front-end board

When the front-end polls the back-end for the game-state, the back-end includes
a "date_updated" String in the JSON. If the String is the same as in the
front-end, then no updates are needed, but if they are not the same, then the
front-end will update the board. Because the front-end polls the back-end's
board state approximately every second, this should make the front-end more
efficient.
back_end/src/db_handler.rs
back_end/src/json_handlers.rs
front_end/src/state.rs
front_end/src/yew_components.rs
specifications/backend_protocol_specification.md