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

Function cleanupClientUploads

lib/image-upload.js:41–45  ·  view source on GitHub ↗
(ws)

Source from the content-addressed store, hash-verified

39}
40
41function cleanupClientUploads(ws) {
42 for (const [uploadId, upload] of state.pendingImageUploads) {
43 if (upload.owner === ws && !upload.submitted) cleanupImageUpload(uploadId);
44 }
45}
46
47function sendUploadStatus(ws, uploadId, status, extra = {}) {
48 if (!ws || ws.readyState !== 1 /* WebSocket.OPEN */) return;

Callers 1

setupWebSocketServerFunction · 0.85

Calls 1

cleanupImageUploadFunction · 0.85

Tested by

no test coverage detected