(payload)
| 46 | } |
| 47 | |
| 48 | export function sendDebugPayload(payload) { |
| 49 | try { |
| 50 | if (S.ws && S.ws.readyState === WebSocket.OPEN) { |
| 51 | S.ws.send(JSON.stringify({ type: 'debug_log', ...payload })); |
| 52 | return true; |
| 53 | } |
| 54 | } catch {} |
| 55 | return false; |
| 56 | } |
| 57 | |
| 58 | export function flushPendingDebugLogs() { |
| 59 | if (!pendingDebugLogs.length) return; |
no outgoing calls
no test coverage detected