-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Re-establish connection with FreeSwitch server when it is lost #36230
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
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 612da48 The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #36230 +/- ##
===========================================
- Coverage 64.83% 64.80% -0.03%
===========================================
Files 3153 3153
Lines 104815 104861 +46
Branches 19966 19990 +24
===========================================
+ Hits 67954 67955 +1
- Misses 34182 34222 +40
- Partials 2679 2684 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
If the FreeSwitch service is restarted, or if the connection to it is lost or fails for any reason, Rocket.Chat was never trying to connect again.
I've replaced the
connectfunction that we were using to establish the connection with a custom class similar toesl's own Client, but with additional capabilities for reconnections. I also split it into two subclasses, one for connections that run api commands and another for connections that listens to event. This was done to reduce the number of events the instance will request of FreeSwitch, thus reducing the amount of data exchanged over the network for this persistent connection.Issue(s)
VSTAB-37
Steps to test or reproduce
Further comments