Skip to content

feat: WebSocket live push (event bus + /live endpoint)#4

Merged
Kwickos merged 2 commits into
developfrom
feat/live-websocket
Jun 8, 2026
Merged

feat: WebSocket live push (event bus + /live endpoint)#4
Kwickos merged 2 commits into
developfrom
feat/live-websocket

Conversation

@Kwickos

@Kwickos Kwickos commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Phase 3 — real-time live push.

Added

  • Live event bus (app/bus.py): InProcessBus (dev/test) + RedisBus (prod), selected by REDIS_URL.
  • WebSocket /live/{game_id}: subscribed ack, then event / score messages. Robust two-task forward + disconnect-watch.
  • GamePoller publishes each derived event + a per-slice score snapshot to the bus.
  • Optional RUN_WORKER_IN_API to run ingestion inside the API process (single-process live push, no Redis).
  • docker-compose wires REDIS_URL for api + worker.
  • Tests: bus unit tests + WebSocket smoke test.

Verified

  • ruff check/format clean · pytest 12/12.

@Kwickos Kwickos merged commit 23411f3 into develop Jun 8, 2026
2 checks passed
@Kwickos Kwickos deleted the feat/live-websocket branch June 8, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant