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

Function buildProxyClientId

src/cli/connection/proxy-profile.ts:62–72  ·  view source on GitHub ↗
(
  stateDir: string,
  daemonBaseUrl: string,
  session: string | undefined,
)

Source from the content-addressed store, hash-verified

60}
61
62function buildProxyClientId(
63 stateDir: string,
64 daemonBaseUrl: string,
65 session: string | undefined,
66): string {
67 return crypto
68 .createHash('sha256')
69 .update(`${stateDir}\0${daemonBaseUrl}\0${session ?? ''}`)
70 .digest('hex')
71 .slice(0, 16);
72}

Callers 1

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected