MCPcopy Create free account
hub / github.com/codicocodes/speedtyper.dev / fetchRaceStatus

Function fetchRaceStatus

packages/webapp-next/common/api/races.ts:7–12  ·  view source on GitHub ↗
(raceId: string)

Source from the content-addressed store, hash-verified

5const RACE_STATUS_API = "/api/races/:id/status";
6
7export const fetchRaceStatus = async (raceId: string) => {
8 const url = serverUrl + RACE_STATUS_API.replace(":id", raceId);
9 return fetch(url, {
10 credentials: "include",
11 }).then((resp) => resp.json());
12};
13
14export const ONLINE_COUNT_API = serverUrl + "/api/races/online";
15

Callers 3

refreshRaceStateFunction · 0.90
useRefreshRaceStatusFunction · 0.90
useConnectionManagerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected