ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Subscriber Worker Queue: Stop Connection #585

Open AndyTWF opened 1 year ago

AndyTWF commented 1 year ago

Implement the following worker:

This worker is called when a consumer calls subscriber.stop(). It calls ably.close(), marks the subscriber as stopped, sets all trackables as offline (do check the TODO comment in Android on this bit) and then notifies the caller of success via callback.

If the subscriber is already stopped, and doWhenStopped is called, then the user callback should be called with success.

sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3403