mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-06 04:44:18 +01:00
Phase 11 of plan 1.3. /ws/v2/state pushes the active role's projection (same bytes as GET /api/v2/state, at most 4 Hz, heartbeat 2 s, latest state only) with the sonar stream's Origin/cookie/subprotocol rules; the browser consumes pushed states in its poll loop, keeps polling presence, chart and feeds on a slow cadence, falls back to full polling after two missed heartbeats and retries every 10 s. src/commander/v2/schema.py is the single allowlist rendered into schema.js by tools/gen_web_schema.py (--check in CI). The browser chart culls tracks in world coordinates before transforming and exposes a frame-time probe. OffscreenCanvas is deferred (documented in docs/resume.md). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>