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

Function sendInitialMessages

lib/ws-server.js:79–97  ·  view source on GitHub ↗
(ws)

Source from the content-addressed store, hash-verified

77}
78
79function sendInitialMessages(ws) {
80 sendWs(ws, {
81 type: 'status',
82 status: state.claudeProc ? 'running' : 'starting',
83 hasTranscript: !!state.transcriptPath,
84 cwd: state.CWD,
85 sessionId: state.currentSessionId,
86 lastSeq: latestEventSeq(),
87 }, 'initial');
88
89 if (state.currentSessionId) {
90 sendWs(ws, {
91 type: 'transcript_ready',
92 transcript: state.transcriptPath,
93 sessionId: state.currentSessionId,
94 lastSeq: latestEventSeq(),
95 }, 'initial');
96 }
97}
98
99function sendAuthOk(ws) {
100 sendWs(ws, {

Callers 1

setupWebSocketServerFunction · 0.85

Calls 2

sendWsFunction · 0.85
latestEventSeqFunction · 0.85

Tested by

no test coverage detected