feat: Appwrite client exponential backoff connection retries (#678)#686
Open
knoxiboy wants to merge 1 commit into
Open
feat: Appwrite client exponential backoff connection retries (#678)#686knoxiboy wants to merge 1 commit into
knoxiboy wants to merge 1 commit into
Conversation
…s banner for Appwrite client (Shruti070107#678)
9156184 to
54ec7b3
Compare
Author
|
@Shruti070107 Please review this pr and merge it |
1 similar comment
Author
|
@Shruti070107 Please review this pr and merge it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolves #678
This PR implements Appwrite client initialization reconnection logic using an exponential backoff retry loop. A floating, real-time reconnection status banner is added to notify users of retry progress and connection status.
What changed
CloudSync.init()withCloudSync.initWithBackoff(attempt).Math.min(30000, Math.pow(2, attempt) * 1000).showReconnectionBannerandhideReconnectionBannerto display status and current retry countdowns.Why
When the Appwrite service or network is offline, direct client initialization throws an uncaught error and fails silently. This prevents the application from attempting to sync once network connectivity or service is restored.
How to test
.envor temporarily disconnect internet access.Checklist
Files Affected
src/cloud-sync.js