-
Notifications
You must be signed in to change notification settings - Fork 78
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
fix(core/react): retrieve agent messages after connection loss and HubtypeService refactor #1360
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1360 +/- ##
==========================================
- Coverage 63.14% 63.13% -0.01%
==========================================
Files 251 251
Lines 7076 7083 +7
Branches 1186 1186
==========================================
+ Hits 4468 4472 +4
- Misses 2266 2270 +4
+ Partials 342 341 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
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 fix the type of WebchatState.lastMessageUpdate in webchat/index.d.ts? now it's undefined
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.
👏 👏
beebafa
to
4d56bd6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Unit Test Results 1 files 6 suites 3m 27s ⏱️ Results for commit 4d56bd6. |
e07517f
to
dc58045
Compare
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.
Nice work!
80c352b
to
a07d20a
Compare
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.
It looks good overall, but have a look to one of my comments to be sure we can't have a potential bug there
Description
Approach
HubtypeService.init()
is called. So when the state of pusher isconnecting
we must be sure to update the corresponding headers.Considerations:
onConnectionRegained
breaks the capability of pusher to detect that the application has been reconnected.Connecting --> update auth headers --> Connected --> Do auth call --> subscription:suceeded --> call logic when connection is regained
References:
Next steps: