Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class WebSocketInstance internal constructor(conversationUser: User, connectionU
private const val TAG = "WebSocketInstance"
private const val NORMAL_CLOSURE = 1000
private const val ONE_SECOND: Long = 1000
private const val PING_INTERVAL_SECONDS: Long = 10
private const val PING_INTERVAL_SECONDS: Long = 30

// Dedicated client with pings, so half-open WebSocket connections
// (e.g. after a WiFi to cellular switch without TCP reset) fail and trigger the reconnect path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WebSocketInstanceSignalingClientTest {
// hardcoded on purpose: fails if the ping interval in WebSocketInstance changes or is removed
assertEquals(
"signaling WebSocket client must send pings to detect half-open connections",
10_000,
30_000,
signalingClient.pingIntervalMillis
)
}
Expand Down
Loading