This worker takes a ably-provided callback that is given to subscriber.start(), this callback expects a Result with either a success or error information.
The worker first of all calls to update all trackable states.
Then, asyncronously:
Connect to Ably
Attach to channel
Enter presence
If any of these steps fail, the callback function is called with a failure Result.
Finally, the worker posts SubscribeForPresenceMessages work, passing down the callback function.
Implement the following worker in the subscriber:
This worker takes a ably-provided callback that is given to
subscriber.start()
, this callback expects aResult
with either a success or error information.The worker first of all calls to update all trackable states.
Then, asyncronously:
If any of these steps fail, the callback function is called with a failure
Result
.Finally, the worker posts
SubscribeForPresenceMessages
work, passing down the callback function.This work depends on: