MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / startKeepAlive

Function startKeepAlive

src/pages/install/utils.ts:105–111  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

103};
104
105export const startKeepAlive = (key: string) => {
106 activeSessionKey = key;
107 // 页面打开时不清除当前uuid,每30秒更新一次记录
108 updateSessionTimestamp();
109 clearInterval(keepAliveTimerId);
110 keepAliveTimerId = setInterval(updateSessionTimestamp, 30_000);
111};

Callers 1

initAsyncFunction · 0.90

Calls 1

updateSessionTimestampFunction · 0.85

Tested by

no test coverage detected