feat: implement real-time websocket activity feed ( #860)#1247
feat: implement real-time websocket activity feed ( #860)#1247Tusharkhadde wants to merge 2 commits into
Conversation
|
This does not hook into the backend entrypoint that the repo currently runs. The PR adds the new Socket.IO server in Because this PR does not update that entrypoint to serve |
|
Thanks for calling this out. You’re absolutely right, and this is on me. I added Socket.IO in backend/main.py (socket_app), but our container still starts uvicorn app.main:app from Dockerfile.backend. So in the normal deployed path, we’re not actually serving the Socket.IO app or running the mock event startup task from that file. That means the frontend socket hook can try to connect, but it won’t get activity_feed events from the runtime we actually deploy, so #860 isn’t fully met yet. I’ll push a follow-up that wires Socket.IO into the real backend entrypoint path (the one the container actually runs) and verify events are emitted there end-to-end. |
|
I’ve pushed a fix that wires the deployed backend runtime to the Socket.IO ASGI app. Updated in Dockerfile.backend: Fix commit: 51f986a |
⚡ Feature: Real-time WebSocket Activity Feed (Tier 3 Bounty)
This PR implements a real-time, live-updating activity feed using WebSockets across both the Frontend and Backend domains. #860
What was added:
🔌 Backend WebSocket Server
python-socketioASGI server inside thebackend/directory.📡 Frontend Socket Hook (
useSocket.ts)socket.io-clientwith a robust connection manager.🎛️ Activity Feed UI (
ActivityFeed.tsx)popLayoutwithout jittering. The feed is securely constrained to the 20 most recent events to prevent DOM bloat.Verification:
Wallet - JDkFAXAaysAradjqQkCtpu2seJZR43F9qrfHZvgPYfvL