Stephen Seo
e77d25996d
When the front-end connects to the back-end, it creates a callback that sends a disconnect message with the received ID on "pagehide" and "beforeunload" events. The previous implementation did not "undo" these callbacks when the game was reset and a new ID was received. This fix prevents the front-end from resending disconnect messages with previously received IDs on browser window/tab close. |
||
---|---|---|
.. | ||
ai.rs | ||
constants.rs | ||
game_logic.rs | ||
html_helper.rs | ||
main.rs | ||
random_helper.rs | ||
state.rs | ||
yew_components.rs |