mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
e251bcac83
Run the same public HTTP and socket cases against TypeScript and all native runtimes. Keep native toolchains out of JavaScript-only jobs, require the dedicated conformance gate, and retain regression evidence and fixture review rules.
15 lines
480 B
JavaScript
15 lines
480 B
JavaScript
import { createServer } from "node:http";
|
|
|
|
// Deliberately broken implementation used to prove the harness rejects false success.
|
|
const server = createServer((_request, response) => {
|
|
response.writeHead(200, { "Content-Type": "application/json" });
|
|
response.end("{}");
|
|
});
|
|
server.listen(0, "127.0.0.1", () =>
|
|
process.stdout.write(JSON.stringify({ port: server.address().port }) + "\n"),
|
|
);
|
|
process.on("SIGTERM", () => {
|
|
server.closeAllConnections();
|
|
server.close();
|
|
});
|