-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't attempt to recover broken WebSockets when there isn't a ne…
…twork connection (#1490) We don't attempt to recover broken WebSockets when there isn't a network connection. Instead, we wait for connectivity to be restored first. This behavior created some weird bugs with `call.leave()`. As we were creating new WebSockets, the `signalReady` never resolved (the socket couldn't be opened) and hence, `send()` was blocking forever. Due to this behavior, when attempting to leave a call while offline, the `callingState` never transitioned from `OFFLINE -> LEFT`. Ref: https://getstream.slack.com/archives/C06H93HC60Z/p1725636744842199?thread_ts=1724334671.814709&cid=C06H93HC60Z --------- Co-authored-by: Santhosh Vaiyapuri <[email protected]>
- Loading branch information
1 parent
f92d00b
commit d576f48
Showing
4 changed files
with
26 additions
and
0 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
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
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
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