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

Gateway: allow websocket reconnect #49

Merged
merged 19 commits into from
Jul 14, 2019
Merged

Conversation

Terkwood
Copy link
Owner

@Terkwood Terkwood commented Jul 14, 2019

Resolves #48: clients may reconnect to a game in progress. For 80% of cases, this results in two different clients being able to continue to send moves back and forth despite websocket disconnects.

Also allows the gateway router to track the current player color each game. This isn't used yet by the client, but should be helpful for cases where a websocket disconnects and then reconnects expecting the wrong player to move next.

@Terkwood Terkwood merged commit 65917eb into unstable Jul 14, 2019
@Terkwood Terkwood deleted the feature/websocket-reconnect branch July 14, 2019 22:19
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

Successfully merging this pull request may close these issues.

Sabaki: auto reconnect websocket
1 participant