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

Class ContainerExample

examples/container/src/index.ts:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91// hands back round-trip into this DO; the actual SyncRPC + ShellRPC
92// traffic stays on the computerd ↔ DO capnweb wire.
93export class ContainerExample extends withWorkspace(ContainerBase, workspaceOptions) {
94 // ---- WebSocket: computerd's outbound /ws upgrade ---------------------
95
96 override async fetch(request: Request): Promise<Response> {
97 return this.backend.handleFetch(request);
98 }
99}
100
101// ---------------------------------------------------------------
102// Worker HTTP surface (unchanged)

Callers

nothing calls this directly

Calls 1

withWorkspaceFunction · 0.90

Tested by

no test coverage detected