generated from CubeCraft-Creations/Tracehound
cb549a8803
The dashboard showed "No Cameras Connected" despite the API returning the camera: - middleware.Timeout + http.Server.WriteTimeout (10s) cancelled the long-lived /api/v1/events/stream every 10s, before any 30s status event could arrive — so the SSE-fed store never populated. Drop the global request timeout and set WriteTimeout=0 (closed-LAN kiosk). - The SPA never seeded from GET /api/v1/cameras (SSE only pushes on change). Fetch the list once on mount and setCameras(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>