MCPcopy Create free account
hub / github.com/cloudflare/computer / start

Function start

packages/computer/src/client.test.ts:38–43  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

36 stream: () => {
37 const stream = new ReadableStream<Uint8Array>({
38 start(c) {
39 c.enqueue(
40 new TextEncoder().encode(`${JSON.stringify({ id, seq: 0, name: "exit", value: 0 })}\n`),
41 );
42 c.close();
43 },
44 });
45 return promisedProperties ? Promise.resolve(stream) : stream;
46 },

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected