MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / cleanupUpstreamWsSession

Function cleanupUpstreamWsSession

server.js:153–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 };
152
153 const cleanupUpstreamWsSession = () => {
154 const cleanup = globalThis.__cchCleanupResponsesWsSession;
155 if (typeof cleanup !== "function") return;
156 try {
157 cleanup(responsesWsSessionId);
158 } catch (err) {
159 log("warn", "ws_upstream_session_cleanup_failed", {
160 error: String(err && err.message ? err.message : err),
161 });
162 }
163 };
164
165 const dropPendingFrames = () => {
166 if (pending.length > 0) {

Callers 2

finalizeFunction · 0.85
requestCloseFunction · 0.85

Calls 2

logFunction · 0.70
cleanupFunction · 0.50

Tested by

no test coverage detected