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

Automatic presence re-enter after network connection is back does not work #857

Closed
KacperKluka opened this issue Nov 18, 2022 · 3 comments · Fixed by #858 or #864
Closed

Automatic presence re-enter after network connection is back does not work #857

KacperKluka opened this issue Nov 18, 2022 · 3 comments · Fixed by #858 or #864
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@KacperKluka
Copy link
Contributor

We've discovered that a channel's presence is not automatically re-entered once you lose an internet connection and then it comes back on. After some further investigation, it turns out that this feature was working on older versions of ably-java SDK but it stopped working since version 1.2.2. Looking at the release notes of version 1.2.2 the most likely cause of this issue is the "Bump protocol version to 1.2".

Steps to reproduce:

  • Create an AblyReatlime instance
  • Join a channel's presence
  • Verify that the client has joined the channel's presence (e.g. with the Ably dev dashboard)
  • Turn the internet connection off
  • Wait for the automatic "leave" event on the channel's presence
  • Turn the internet connection on
  • Wait for the automatic "enter" event

What should happen: The client should automatically re-enter the channel's presence after a few seconds
What happens: The client never re-enters the channel's presence

@KacperKluka KacperKluka added the bug Something isn't working. It's clear that this does need to be fixed. label Nov 18, 2022
@sync-by-unito
Copy link

sync-by-unito bot commented Nov 18, 2022

➤ Automation for Jira commented:

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

@paddybyers
Copy link
Member

The relevant requirement is https://sdk.ably.com/builds/ably/specification/main/features/#RTP17c.

There is no test for this requirement, and no mention of this spec item in any historical PR.

There are two existing tests that mention RTP17:

Neither tests RTP17c specifically, and both are currently ignored.

@QuintinWillison
Copy link
Contributor

@KacperKluka tried our version 1.2.19 release in AAT and has discovered that this issue is still not fixed. In further discussion with @paddybyers and @SimonWoolf in this Slack thread (internal) we have discovered that we should have reverted to protocol 1.0, not 1.1 as was the fix attempted in #858:

serverside, hasClientsidePresenceAutoReEnter is assumed to be true for >= 1.1 for most client libs, or >= 0.9 for js

I am therefore reopening this issue and another PR will be inbound shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

Successfully merging a pull request may close this issue.

3 participants