Skip to content

Commit f6de443

Browse files
committed
2 parents b153152 + af12a6c commit f6de443

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/startSSEServer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ export const startSSEServer = async <T extends ServerLike>({
5454
return;
5555
}
5656

57+
if (req.method === "GET" && req.url === "/health") {
58+
res.writeHead(200, { "Content-Type": "text/plain" }).end("OK");
59+
return;
60+
}
61+
5762
if (req.method === "GET" && req.url === `/ping`) {
5863
res.writeHead(200).end("pong");
5964

0 commit comments

Comments
 (0)