-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
epic:websocketEpic 4: WebSocket & Real-Time PushEpic 4: WebSocket & Real-Time PushmobilePPG Mobile projectPPG Mobile project
Description
Epic 4: WebSocket & Real-Time Push — Issue 2/3
Source: 2-agent watcher pattern
Description
Dual-source manifest change detection that broadcasts updates to connected WebSocket clients.
Acceptance Criteria
-
fs.watchon manifest.json with 300ms debounce - Status polling at 3s interval (calls
checkAgentStatus()for live status) - Tracks previous agent statuses — sends individual
agent:statusevents on change - Broadcasts full
manifest:updatedevent on manifest file change - Graceful error handling for in-flight writes (manifest may be partially written)
- Cleanup on server shutdown
- Tests: debounce, status change detection, broadcast
Dependencies
- Requires: Implement WebSocket handler and event system #73 (WebSocket handler)
Files to Create/Modify
src/server/ws/watcher.ts(new)src/server/ws/watcher.test.ts(new)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
epic:websocketEpic 4: WebSocket & Real-Time PushEpic 4: WebSocket & Real-Time PushmobilePPG Mobile projectPPG Mobile project