MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / isPortUnavailable

Function isPortUnavailable

packages/cli/src/server.ts:116–119  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

114}
115
116function isPortUnavailable(err: unknown): boolean {
117 const code = (err as NodeJS.ErrnoException).code;
118 return code === "EADDRINUSE" || code === "EACCES";
119}
120
121function compileRoute(route: Route): CompiledRoute {
122 const paramNames: string[] = [];

Callers 1

startServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected