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

Close Android realtime socket properly on unsubscribe #814

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Close Android realtime socket properly on unsubscribe #814

merged 1 commit into from
Apr 29, 2024

Conversation

zlmr
Copy link
Contributor

@zlmr zlmr commented Apr 18, 2024

What does this PR do?

Fixes Android realtime socket cleanup - last subscription was always active even after unsubscribing.

Test Plan

Inspecting network, simple breakpoint in onMessage function and observing realtime count indicator in Appwrite dashboard revealed that realtime connection is still active and data is coming through even after disconnecting.
After the fix, socket is closed properly and Appwrite dashboard confirms it as well.

Related PRs and Issues

Similar issue found on sdk-for-web -> #809

Have you read the Contributing Guidelines on issues?

Yes

@abnegate abnegate merged commit 7689f69 into appwrite:master Apr 29, 2024
34 checks passed
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