MCPcopy Index your code
hub / github.com/callstack/agent-device / isSameDaemonState

Function isSameDaemonState

src/cli/commands/connection.ts:523–530  ·  view source on GitHub ↗
(
  a: RemoteConnectionState['daemon'],
  b: RemoteConnectionState['daemon'],
)

Source from the content-addressed store, hash-verified

521}
522
523function isSameDaemonState(
524 a: RemoteConnectionState['daemon'],
525 b: RemoteConnectionState['daemon'],
526): boolean {
527 return (['baseUrl', 'transport', 'serverMode'] as const).every(
528 (key) => (a?.[key] ?? undefined) === (b?.[key] ?? undefined),
529 );
530}
531
532function buildDaemonState(flags: CliFlags): RemoteConnectionState['daemon'] {
533 return buildRemoteConnectionDaemonState(flags);

Callers 1

isCompatibleConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected