MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / serviceLooksUsable

Function serviceLooksUsable

scripts/studio-host-provider.mjs:167–172  ·  view source on GitHub ↗
(status, config)

Source from the content-addressed store, hash-verified

165}
166
167function serviceLooksUsable(status, config) {
168 if (!status?.httpUrl || !status?.accessToken) {
169 return false;
170 }
171 return status.httpUrl.replace(/\/$/, "") === config.localUrl;
172}
173
174async function heartbeat(config, state, first, statusOverride) {
175 const metadata = await localProviderMetadata(config).catch((error) => ({

Callers 1

ensureServiceFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected