-
Notifications
You must be signed in to change notification settings - Fork 19
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
[ECO-4687]Feature/resume recover #402
Conversation
sacOO7
commented
May 3, 2024
•
edited
Loading
edited
- Fixed [ably-ruby][no-connection-serial] Implement connection resume/recover #393
- There might be failing tests on the PR. Those will be addressed as a part of [ably-ruby][no-connection-serial] Implement missing internal presence #392 and [ably-ruby][no-connection-serial] Implement code + tests for no-connection-serial #378
297b3fa
to
631b1f8
Compare
initialize method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a cursory look at this PR. A few comments:
- if you're going to split the work across multiple PRs, then I think you're going to have to be the one responsible for making sure that all of the required spec points end up being implemented, because I don't know what the scope of this PR is meant to be
- there seems to be new code added, does this new code not need tests?
@@ -62,7 +62,7 @@ class Client | |||
|
|||
# When a recover option is specified a connection inherits the state of a previous connection that may have existed under a different instance of the Realtime library, please refer to the API documentation for further information on connection state recovery | |||
# @return [String,Nil] | |||
attr_reader :recover | |||
attr_accessor :recover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated at #409
lib/ably/realtime/connection.rb
Outdated
# of pairs of channel @name@ and current @channelSerial@ for every currently attached channel | ||
def create_recovery_key | ||
if key.nil? || key.empty? || state == :closing || state == :closed || state == :failed || state == :suspended | ||
return "" #RTN16h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this spec point doesn't exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated at #409
2588b9f
to
9b25716
Compare
@lawrence-forooghian I have created a separate PR with proper commit history -> #409 |