MCPcopy Create free account
hub / github.com/callstack/agent-device / expectHandlerResponse

Function expectHandlerResponse

src/daemon/request-handler-chain.ts:177–187  ·  view source on GitHub ↗
(
  command: string,
  handlerFamily: string,
  response: DaemonResponse | null,
)

Source from the content-addressed store, hash-verified

175}
176
177function expectHandlerResponse(
178 command: string,
179 handlerFamily: string,
180 response: DaemonResponse | null,
181): DaemonResponse {
182 if (response) return response;
183 throw new AppError(
184 'INTERNAL_ERROR',
185 `Daemon handler routing mismatch: ${handlerFamily} handler matched command "${command}" but returned no response.`,
186 );
187}

Callers 7

runLeaseHandlerFunction · 0.85
runSessionHandlerFunction · 0.85
runSnapshotHandlerFunction · 0.85
runReactNativeHandlerFunction · 0.85
runRecordTraceHandlerFunction · 0.85
runFindHandlerFunction · 0.85
runInteractionHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…