From ff480129a3881fe3cdb7f9eff60fb03bd65620f1 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 5 Mar 2026 17:13:17 -0500 Subject: [PATCH] feat: add WebSocket message types for scan progress Add new message type constants for real-time scan progress updates: - MessageTypeScanProgress: broadcast progress during scanning - MessageTypeScanComplete: notify when scan completes - MessageTypeScanError: report scan errors These enable frontend to receive live scan updates instead of polling. --- internal/sync/websocket.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/sync/websocket.go b/internal/sync/websocket.go index 8494c46..19bcf71 100644 --- a/internal/sync/websocket.go +++ b/internal/sync/websocket.go @@ -17,6 +17,9 @@ const ( MessageTypeSyncComplete = "sync_complete" MessageTypeHeartbeat = "heartbeat" MessageTypeInitial = "initial_state" + MessageTypeScanProgress = "scan_progress" + MessageTypeScanComplete = "scan_complete" + MessageTypeScanError = "scan_error" ) // BroadcastMessage represents a message to broadcast to connected clients