-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reconnect): Also reconnect pending connections. (#65)
Commit 28bf0d introduced a feature where active subscriptions made via the real-time client would resubscribe upon a disconnect and reconnect. This could pose a problem if Track API was having errors connecting to its backing services, because the client might get into a state where only some of the subscriptions it tries to restart will actually restart. Then, on the next disconnect/reconnect, it will only restart the ones that started successfully. This PR makes sure that subscriptions that were pending at the time of the disconnect are also restarted. Signed-off-by: Jeff Cuevas-Koch <[email protected]>
- Loading branch information
1 parent
d8bf0d2
commit 4b2fce1
Showing
1 changed file
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters