We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b153152 + af12a6c commit f6de443Copy full SHA for f6de443
src/startSSEServer.ts
@@ -54,6 +54,11 @@ export const startSSEServer = async <T extends ServerLike>({
54
return;
55
}
56
57
+ if (req.method === "GET" && req.url === "/health") {
58
+ res.writeHead(200, { "Content-Type": "text/plain" }).end("OK");
59
+ return;
60
+ }
61
+
62
if (req.method === "GET" && req.url === `/ping`) {
63
res.writeHead(200).end("pong");
64
0 commit comments