package api import "net/http" // GET /ws/device?id= — the Fly App connects here to stream telemetry. func (s *Server) handleDeviceWS(w http.ResponseWriter, r *http.Request) { s.hub.ServeDevice(w, r, r.URL.Query().Get("id")) } // GET /ws/ui — the web dashboard / panel connects here for the live stream. func (s *Server) handleUIWS(w http.ResponseWriter, r *http.Request) { s.hub.ServeUI(w, r) }