MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / runHubProbes

Function runHubProbes

app/src/modules/hub.js:366–380  ·  view source on GitHub ↗
(servers, { markUnknown = false } = {})

Source from the content-addressed store, hash-verified

364}
365
366async function runHubProbes(servers, { markUnknown = false } = {}) {
367 if (!servers.length) return;
368 const results = await Promise.all(servers.map(server => {
369 const info = getHubProbeInfo(server.id);
370 const token = ++info.probeToken;
371 if (markUnknown && !info.lastProbeAt) info.status = 'probing';
372 return probeServer(server).then(result => ({ server, result, token }));
373 }));
374 results.forEach(({ server, result, token }) => {
375 const current = hubStatus.get(server.id);
376 if (!current || current.probeToken !== token) return;
377 applyHubProbeResult(server, result);
378 });
379 renderHubCards();
380}
381
382async function probeAllServers() {
383 const servers = getSavedServers();

Callers 3

scheduleHubRetryFunction · 0.70
probeAllServersFunction · 0.70
saveServerDialogFunction · 0.70

Calls 4

getHubProbeInfoFunction · 0.70
probeServerFunction · 0.70
applyHubProbeResultFunction · 0.70
renderHubCardsFunction · 0.70

Tested by

no test coverage detected