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