Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Room Persistence #8

Open
ebettenga opened this issue Feb 22, 2023 · 0 comments
Open

Frontend Room Persistence #8

ebettenga opened this issue Feb 22, 2023 · 0 comments

Comments

@ebettenga
Copy link
Owner

ebettenga commented Feb 22, 2023

right now when you refresh the page, you lose the game you're in.

we want to store some information in sessionStorage so we can navigate you back to the state you belong when you come back to the page.

further, We want to make sure we remove the data when we finish a game, so when we reload it doesn't take us back to the game anymore.

when the page loads, if there's session information stored, we need to call join_room to retrieve the game data and add the new socket back to the room on the backend.

@ebettenga ebettenga converted this from a draft issue Feb 22, 2023
@ebettenga ebettenga moved this from 🆕 New to 🔖 Ready in Crossed Board Feb 22, 2023
@ebettenga ebettenga moved this from 🔖 Ready to ✅ Done in Crossed Board Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant