fix: keep transient ticket failures reconnecting (#740)
* fix: keep transient ticket failures reconnecting * fix: recover rejected websocket sends * fix: serialize websocket reconnect scheduling
This commit is contained in:
1 parent
13895585b0
commit
e39544ebd5
4 files changed
+748
-113
No files matched your search
@@ -121,9 +121,7 @@ fun ChatConnectionBanner(
|
||||
}
|
||||
}
|
||||
|
||||
ConnectionStatus.RECONNECTING,
|
||||
ConnectionStatus.AUTH_EXPIRED,
|
||||
-> {
|
||||
ConnectionStatus.AUTH_EXPIRED -> {
|
||||
TextButton(
|
||||
onClick = onReloginClick,
|
||||
colors =
|
||||
@@ -135,6 +133,8 @@ fun ChatConnectionBanner(
|
||||
}
|
||||
}
|
||||
|
||||
ConnectionStatus.RECONNECTING -> {}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ class SettingsViewModel(
|
||||
AuthManager.setToken(null)
|
||||
AuthManager.setSessionCookie(null)
|
||||
AuthManager.setWsAuthParam("token")
|
||||
HermesWsClient.disconnect()
|
||||
HermesWsClient.disconnect(clearPendingMessages = true)
|
||||
// Don't rebuild ApiClient here — let the navigation complete first
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user