- 
                Notifications
    You must be signed in to change notification settings 
- Fork 17
[HOTFIX] Clear PingTimeout #607
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
Conversation
| Codecov Report
 @@            Coverage Diff             @@
##           master     #607      +/-   ##
==========================================
+ Coverage   86.54%   86.75%   +0.20%     
==========================================
  Files          33       33              
  Lines        1501     1502       +1     
  Branches      262      262              
==========================================
+ Hits         1299     1303       +4     
+ Misses        149      146       -3     
  Partials       53       53              
 Continue to review full report at Codecov. 
 | 
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.
Can you add basic unit test for this please?
        
          
                src/protocols/abstract/Realtime.ts
              
                Outdated
          
        
      | * Called when the client's connection is closed | ||
| */ | ||
| clientDisconnected () { | ||
| clearInterval(this.pingIntervalId); | 
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.
The Realtime object is a generic class that does not know anything about those properties, since they are specific to the websocket protocol
What you can do is to add an overload to these Realtime methods in the WebSocket class, clear the timers there, and then invoke the overloaded methods
What does this PR do?
Fixes the ping clearTimeout
How should this be manually tested?
...
Other changes
Boyscout