Lighten Android chat realtime refreshes

This commit is contained in:
kris
2026-04-10 17:15:39 +08:00
parent 68da424eb8
commit 7131ee9eb1
9 changed files with 439 additions and 21 deletions

View File

@@ -11,8 +11,8 @@ test("BossRealtimeClient tracks whether the SSE stream is currently connected",
assert.match(source, /private volatile boolean connected;/, "expected realtime client to cache connection state");
assert.match(source, /boolean isConnected\(\)\s*\{\s*return connected;\s*\}/, "expected realtime client to expose connection state");
assert.match(source, /connected = true;/, "expected realtime client to flip connected once the SSE stream is ready");
assert.match(source, /connected = false;/, "expected realtime client to clear connected when the stream stops");
assert.match(source, /setConnected\(true\);/, "expected realtime client to flip connected once the SSE stream is ready");
assert.match(source, /setConnected\(false\);/, "expected realtime client to clear connected when the stream stops");
});
test("MainActivity only performs conversation polling when realtime is unavailable", async () => {