Skip to content

joinOrCreate() should prefer connected peers - #410

Merged
erikdubbelboer merged 1 commit into
mainfrom
joinOrCreate-no-disconnected-peers
Nov 2, 2026
Merged

erikdubbelboer merged 1 commit into
mainfrom
joinOrCreate-no-disconnected-peers

Conversation

@erikdubbelboer

Copy link
Copy Markdown
Member

Don't connect to lobbies with disconnected peers. This API is made for quick matches, if you connect to a lobby with disconnected peers this is a bad experience.

Don't connect to lobbies with disconnected peers. This API is made for
quick matches, if you connect to a lobby with disconnected peers this is
a bad experience.

@koenbollen koenbollen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this feature, the 90sec feels very long. It makes sense in the context of updating activity every 30sec.

Idea for future addition for this feature:
What if the client does a quick ping/pong when joining the lobby before emitting the 'joined' event, and if no reply tries again?

@erikdubbelboer
erikdubbelboer merged commit 7c87fea into main Nov 2, 2026
12 of 13 checks passed
@erikdubbelboer
erikdubbelboer deleted the joinOrCreate-no-disconnected-peers branch November 2, 2026 23:45
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.

2 participants