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

Subscriber Worker Queue: Start Connection #590

Open
AndyTWF opened this issue Feb 22, 2023 · 1 comment
Open

Subscriber Worker Queue: Start Connection #590

AndyTWF opened this issue Feb 22, 2023 · 1 comment
Milestone

Comments

@AndyTWF
Copy link
Contributor

AndyTWF commented Feb 22, 2023

Implement the following worker in the subscriber:

  • StartConnection

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.

This work depends on:

@AndyTWF AndyTWF added this to the 1.0.0 milestone Feb 22, 2023
@sync-by-unito
Copy link

sync-by-unito bot commented Feb 22, 2023

➤ Automation for Jira commented:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant