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

Function remoteConnectionStatePath

src/remote/remote-connection-state.ts:185–191  ·  view source on GitHub ↗
(options: { stateDir: string; session: string })

Source from the content-addressed store, hash-verified

183}
184
185function remoteConnectionStatePath(options: { stateDir: string; session: string }): string {
186 return path.join(
187 options.stateDir,
188 'remote-connections',
189 `${safeStateName(options.session)}.json`,
190 );
191}
192
193function activeConnectionStatePath(stateDir: string): string {
194 return path.join(stateDir, 'remote-connections', '.active-session.json');

Callers 3

Calls 1

safeStateNameFunction · 0.85

Tested by

no test coverage detected