MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / isUsable

Function isUsable

scripts/dev-safe.mjs:362–365  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

360 ])
361 ).includes(true);
362 const isUsable = async (port) =>
363 !reservedPorts.includes(port) &&
364 (await tryPort(port, bindHost)) &&
365 !(await answersOnLoopback(port));
366
367 if (await isUsable(preferredPort)) return preferredPort;
368

Callers 1

resolveFrontendPortFunction · 0.85

Calls 2

tryPortFunction · 0.85
answersOnLoopbackFunction · 0.85

Tested by

no test coverage detected