MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / start

Function start

src/ssh/__tests__/SSHSessionManager.test.ts:23–31  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

21
22 const stdout = new ReadableStream<Uint8Array>({
23 start(controller) {
24 stdoutController = controller
25 if (options?.stdoutLines) {
26 const encoder = new TextEncoder()
27 for (const line of options.stdoutLines) {
28 controller.enqueue(encoder.encode(line + '\n'))
29 }
30 }
31 },
32 })
33
34 const stdinChunks: Uint8Array[] = []

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected