Detect and recycle WebSockets stuck in connecting state.

This commit is contained in:
Cody Henthorne
2025-05-16 13:13:32 -04:00
committed by GitHub
parent b6c033b075
commit a2f7afcb68
8 changed files with 57 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ sealed class SignalWebSocket(
}
private var connection: WebSocketConnection? = null
private val connectionName
val connectionName
get() = connection?.name ?: "[null]"
private val _state: BehaviorSubject<WebSocketConnectionState> = BehaviorSubject.createDefault(WebSocketConnectionState.DISCONNECTED)