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

Function removeRemoteConnectionState

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

Source from the content-addressed store, hash-verified

101}
102
103export function removeRemoteConnectionState(options: { stateDir: string; session: string }): void {
104 fs.rmSync(remoteConnectionStatePath(options), { force: true });
105 const activePath = activeConnectionStatePath(options.stateDir);
106 const activeSession = readActiveConnectionSession(options.stateDir);
107 if (activeSession === options.session) {
108 fs.rmSync(activePath, { force: true });
109 }
110}
111
112export function resolveRemoteConnectionDefaults(options: {
113 stateDir: string;

Callers 2

disconnectCommandFunction · 0.90

Calls 3

Tested by

no test coverage detected