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

Reset doesn't work on multiplayer games #1166

Open
amidos2006 opened this issue Sep 20, 2023 · 2 comments
Open

Reset doesn't work on multiplayer games #1166

amidos2006 opened this issue Sep 20, 2023 · 2 comments

Comments

@amidos2006
Copy link

Hello everyone,
sorry if that is dump question but I tried to use the client.reset() function to reset a certain match so if the player want to leave a match and start a new one with the same matchID. The client side get reseted but the server side doesn't allow to do that and stays in the same state.
Is there a way to force destroy a certain match from the server so I can use the same matchID or does this happen automatically after awhile of inactivity?

Sorry again if that is a dump question and thanks in advance.

@psalaets
Copy link

I've never used reset() but is there a specific reason why you want to reuse a match instead of creating a new match?

Maybe the "play again" feature could help you: https://boardgame.io/documentation/#/api/Lobby?id=playing-again

@amidos2006
Copy link
Author

I wanted to shut down a match so I don't have so many matches that no one is playing on the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants