pour application android simpl-liste
  • TypeScript 78.5%
  • JavaScript 19.3%
  • Python 2%
  • Dockerfile 0.1%
  • CSS 0.1%
Find a file
le king fu df40602a49 feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175)
The app opens the companion WebSocket in the foreground (ticket from
POST /api/ws-ticket, then wss://.../ws derived from SYNC_API_BASE). A sync
notice asks the scheduler at once; later notices within 20 s fold into one
sync at the end of the window. The fixed 30 s tick skips while the socket is
open and the last sync is under 2 min old.

Reconnection: 1 s doubled, capped at 60 s, +-20 % jitter, reset after 30 s
open; auth_expired takes a new ticket at once; ticket 401 stops until the
next start; ticket 429 waits for the bounded Retry-After. The socket closes
in the background, on sign-out, sync off and canSync false.

syncSocket.ts is pure and import-free (tests/syncSocket.test.mjs under node);
syncSocketClient.ts wires fetch, WebSocket and timers and only calls
scheduleSync. REVIEW.md Haut Sync line and review-levels.py include both.

Refs #175

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 21:13:16 -05:00
.claude docs(skills): eas-build resumes an interrupted release 2026-11-07 20:34:25 -05:00
.vscode Initial commit 2026-02-20 19:08:56 -05:00
app feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175) 2026-11-07 21:13:16 -05:00
assets feat: add custom app icon and adjust medium widget to 2x4 2026-02-21 14:12:22 -05:00
patches perf(widget): cut expand/collapse tap latency (native patches + light headless path) 2026-07-19 16:41:47 -04:00
scripts feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175) 2026-11-07 21:13:16 -05:00
src feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175) 2026-11-07 21:13:16 -05:00
tests feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175) 2026-11-07 21:13:16 -05:00
web Merge branch 'issue-181-tag-updated-at' into issue-182-web-tag-crud 2026-11-03 20:42:41 -05:00
.gitignore chore: ignore .next/ and reports/ 2026-09-27 15:52:56 -04:00
app.json chore: bump version to 1.8.0 (versionCode 20) 2026-11-04 21:35:40 -05:00
babel.config.js feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
CLAUDE.md docs(decisions): seed the product decisions register 2026-10-30 01:45:16 +00:00
DECISIONS.md decisions: WebSocket sync window and interval (#175) 2026-11-07 20:47:49 -05:00
drizzle.config.ts feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
eas.json feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
index.js feat: add Android widget for task overview (3 sizes) 2026-02-21 09:47:15 -05:00
masterplan.md docs: add CLAUDE.md and masterplan for project reference 2026-02-20 21:50:45 -05:00
metro.config.js fix: list navigation, crypto polyfill, SQL transformer, dark mode priorities 2026-02-20 20:15:49 -05:00
nativewind-env.d.ts feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
package-lock.json chore: bump version to 1.8.0 (versionCode 20) 2026-11-04 21:35:40 -05:00
package.json feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175) 2026-11-07 21:13:16 -05:00
REVIEW.md feat(sync): listen to the companion WebSocket for instant web-to-app sync (#175) 2026-11-07 21:13:16 -05:00
SECURITY.md docs(security): seed STATE.md and SECURITY.md after vuln remediation 2026-04-24 07:30:41 -04:00
spec-decisions-sync-suites.md docs(spec): add sync-suites decisions and plan 2026-10-24 13:31:35 -04:00
spec-plan-sync-delai-comptes-etiquettes.md docs(spec): plan for sync delay, account switch and companion tags 2026-11-02 20:35:18 -05:00
spec-plan-sync-suites.md docs(spec): add sync-suites decisions and plan 2026-10-24 13:31:35 -04:00
spec-plan-sync-ws-tests-sonde.md spec: plan the WebSocket, sync harness, prod probe and esbuild milestone 2026-11-07 20:47:41 -05:00
spec-simpl-liste-web.md docs: archive spec-simpl-liste-web (milestone 12/12 done) 2026-04-19 15:57:00 -04:00
sql-transformer.js fix: list navigation, crypto polyfill, SQL transformer, dark mode priorities 2026-02-20 20:15:49 -05:00
STATE.md state: sync after #190 2026-11-04 20:33:41 -05:00
tailwind.config.js feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
tsconfig.json fix: resolve Logto auth crash on web — remove illegal cookie set in layout 2026-04-08 13:12:59 -04:00