MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / onShellReady

Function onShellReady

examples/remix/app/entry.server.tsx:107–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 />,
106 {
107 onShellReady() {
108 shellRendered = true;
109 const body = new PassThrough();
110 const stream = createReadableStreamFromReadable(body);
111
112 responseHeaders.set("Content-Type", "text/html");
113
114 resolve(
115 new Response(stream, {
116 headers: responseHeaders,
117 status: responseStatusCode,
118 })
119 );
120
121 pipe(body);
122 },
123 onShellError(error: unknown) {
124 reject(error);
125 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected