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

Problem with the leave game #1079

Open
TorinBarinov opened this issue Jun 24, 2022 · 1 comment
Open

Problem with the leave game #1079

TorinBarinov opened this issue Jun 24, 2022 · 1 comment
Labels
bug Lobby Related to the Lobby part of the codebase

Comments

@TorinBarinov
Copy link

Hello guys, i have a problem with a game. When i win, my opponent leaves from the game, then if he wants come back and join to the last game, matchData return only id and isConnected for the second player

[{"id": 0, "isConnected": true, "name": "FirstPlayer"}, {"id": 1, "isConnected": true}]

but actually show

[{"id": 0, "isConnected": false, "name": "FirstPlayer"}, {"id": 1, "isConnected": true,"name": "SecondPlayer"}]

After that the game is unplayable, a lot of bugs come out

Q1: How to add name to the matchData when its return?
Q2 Is there another way to solve the problem?

@Juliano-rb
Copy link

Juliano-rb commented Sep 21, 2022

It shows

[{"id": 0, "isConnected": true, "name": "FirstPlayer"}, {"id": 1, "isConnected": true}]

After player leaves and the second JSON is the desired, right?
I think i'm with the same problem here https://gitter.im/boardgame-io/General?at=632a39fd9994996293749a33

@vdfdev vdfdev added bug Lobby Related to the Lobby part of the codebase labels Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Lobby Related to the Lobby part of the codebase
Projects
None yet
Development

No branches or pull requests

3 participants