MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / flushPendingDebugLogs

Function flushPendingDebugLogs

app/src/modules/debug.js:58–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58export function flushPendingDebugLogs() {
59 if (!pendingDebugLogs.length) return;
60 if (!S.ws || S.ws.readyState !== WebSocket.OPEN) return;
61 const backlog = pendingDebugLogs.splice(0, pendingDebugLogs.length);
62 for (let i = 0; i < backlog.length; i += 1) {
63 const payload = backlog[i];
64 if (!sendDebugPayload(payload)) {
65 restorePendingDebugLogs(backlog.slice(i));
66 break;
67 }
68 }
69}
70
71export function debugLog(event, detail = {}) {
72 const payload = {

Callers 1

connectFunction · 0.90

Calls 2

sendDebugPayloadFunction · 0.70
restorePendingDebugLogsFunction · 0.70

Tested by

no test coverage detected