boardgame.io
boardgame.io copied to clipboard
Reset doesn't work on multiplayer games
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.
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
I wanted to shut down a match so I don't have so many matches that no one is playing on the server.