);
@@ -340,7 +342,7 @@ export function SpeedtestRpcClient() {
patch(ep.id, {
status: "cors_blocked",
error:
- "Endpoint rejected the browser request (CORS or network). Test it from a terminal instead — see the curl below.",
+ "This endpoint does not answer browser requests (no CORS headers on preflight) — dapps cannot call it from a browser either. It may still be fast server-side: measure it from a terminal with the curl below.",
});
}
}
@@ -425,7 +427,6 @@ export function SpeedtestRpcClient() {
useEffect(() => () => { abortRef.current.stop = true; }, []);
- const active = endpoints.find((e) => e.id === activeId) ?? null;
const ranked = useMemo(() => {
const done = endpoints.filter((e) => e.samples.length > 0);
return done
@@ -552,11 +553,66 @@ export function SpeedtestRpcClient() {
-
+ {/* One speedometer per endpoint, all live at once. The
+ active one (currently being probed) lifts and gets an
+ ink border; the others keep their last reading. */}
+