Skip to content

Commit a4eb600

Browse files
authored
Update startSSEServer.ts with /health endpoint
1 parent 70591d2 commit a4eb600

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)