boardgame.io icon indicating copy to clipboard operation
boardgame.io copied to clipboard

Reset doesn't work on multiplayer games

Open amidos2006 opened this issue 1 year ago • 2 comments

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.

amidos2006 avatar Sep 20 '23 11:09 amidos2006

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

psalaets avatar Sep 22 '23 23:09 psalaets

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

amidos2006 avatar Feb 17 '24 08:02 amidos2006