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

Add AppSyncClient.queuedMutationCount property #198

Merged
merged 5 commits into from
Mar 11, 2019

Conversation

palpatim
Copy link
Contributor

@palpatim palpatim commented Mar 8, 2019

Issue #, if available:
#192

Description of changes:

NOTE: This PR is based on #197. See 9317952 for the diff that applies just to this PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

palpatim added 4 commits March 7, 2019 20:36
- Fixed AppSyncMQTTClient data races (#184)
- Added `statusChangeHandler` to AppSyncClient's `subscribe` method to provide status updates.
- Added verbose logging around subscription connections
- Cancel streams and reconnect threads on disconnect
This fixes the connection thrashing that can occur when the MQTT client
reconnects while AppSync is simultaneously advising clients to reconnect. The
preferred level at which to manage reconnections for AppSync is the AppSync
client itself, rather than the MQTTClient.

It's possible at some point in the future we may elect to expose an AppSync
client to support auto-reconnect, but even that would still be managed in the
AppSync client, rather than the MQTT client.
@scb01 scb01 merged commit 9df04ce into master Mar 11, 2019
@scb01 scb01 deleted the palpatim/gh192-mutation-queue-size branch March 11, 2019 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Community contribution PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants