Commit Graph

6 Commits

Author SHA1 Message Date
Michael Law f7e12fec3c chore: remove year from file header 2022-01-31 12:18:35 -05:00
Abhash Kumar Singh f4a832fd39
Realtime interceptor changes for GraphQL subscriptions (#53)
* Realtime interceptor changes for graphql subscriptions

* Update code and add more tests

* Add missing files

* Update project files for cocoapods build

* Address review comments

* Address review comments

* Address review comments
2021-11-10 13:27:12 -08:00
Tim Schmelter c6bc693643
fix: Fix race condition in disconnect; protect status & write access (#40) 2021-01-26 11:34:33 -08:00
Tim Schmelter 74c5079ecd
fix: Fix stale connection handling upon resume from background (#25)
Additional work:
- chore: Add SwiftLint and SwiftFormat build tools to all targets except HostApp
- chore: Fixed formatting & linting
- chore: Add interactive app to test subscribe, unsubscribe and disconnect behavior from clients
- chore: Add unit tests for RealTimeConnectionProvider
- chore: Add CountdownTimer support class
2020-07-31 12:47:58 -07:00
Michael Law 54644f8927
Socket Disconnect when no remaining subscriptions (#8)
* Add a timeout to disconnect the websocket when there are no remaining subscriptions

* Move to original implementation, disconnect on last unsubscribe

* adding listeners count check
2020-03-28 12:53:46 -07:00
Michael Law af4767bf74
Add Interecptors, ConnectionProviderFactory, and integration test target (#4)
* - Moved over the three common interceptor classes: APIKey, IAM, OIDC.
  Refactored the initialization methods to allow consumers to use without taking on a dependency on the auth provider classes vended by AppSync client.
  The reason for this is to prevent a breaking change, we cannot move the auth provider classes over to AppSyncRealTimeClient or AppSyncClient consumers will
  have to take on AppSyncRealTimeClient as a dependency.
- Add ConnectionProviderFactory class for creating connection providers with auth interceptors.
  This is the entry point for consumers to pass (url, authInterceptor) to get a connection provider back.
- Add integration test target with AppSync backend provisioned

* Moved out IAMAuthInterceptor to remove dependency on AWSCore

* removed AWSCore from podspec
2020-03-09 18:54:56 -07:00