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

Function wsReadyStateName

app/src/modules/debug.js:26–35  ·  view source on GitHub ↗
(ws)

Source from the content-addressed store, hash-verified

24export const pendingDebugLogs = [];
25
26export function wsReadyStateName(ws) {
27 if (!ws) return 'null';
28 switch (ws.readyState) {
29 case WebSocket.CONNECTING: return 'CONNECTING';
30 case WebSocket.OPEN: return 'OPEN';
31 case WebSocket.CLOSING: return 'CLOSING';
32 case WebSocket.CLOSED: return 'CLOSED';
33 default: return String(ws.readyState);
34 }
35}
36
37export function queueDebugPayload(payload) {
38 pendingDebugLogs.push(payload);

Callers 7

clearForegroundProbeFunction · 0.90
reconnectFromForegroundFunction · 0.90
startForegroundProbeFunction · 0.90
syncSessionStateFunction · 0.90
connectFunction · 0.90
logLifecycleEventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected