Skip to content

Conversation

@adrian-niculescu
Copy link
Contributor

Summary

  • Fixed bug where Room stays in CONNECTING state after a failed connect attempt, making subsequent connect calls throw IllegalStateException
  • Room now properly resets to DISCONNECTED state and emits a Disconnected event with JOIN_FAILURE reason on connect failure

Test plan

  • Added connectFailureResetsStateToDisconnected test verifying state reset and event emission
  • Added connectRetryAfterFailureSucceeds test verifying retry works after failure

…empts.

Previously, if Room.connect() failed (due to network errors, invalid URL/token,
TLS errors, etc.), the Room would remain in CONNECTING state, causing subsequent
connect attempts to throw IllegalStateException. Now the Room properly resets to
DISCONNECTED state and emits a Disconnected event with JOIN_FAILURE reason,
allowing retry attempts.
@changeset-bot
Copy link

changeset-bot bot commented Dec 20, 2025

🦋 Changeset detected

Latest commit: b606eee

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
client-sdk-android Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant