Skip to content

Commit d564b57

Browse files
committed
health check
1 parent a70c920 commit d564b57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,10 @@ async function runSSECloudServer() {
13531353
const transports: { [sessionId: string]: SSEServerTransport } = {};
13541354
const app = express();
13551355

1356+
app.get('/health', (req, res) => {
1357+
res.status(200).send('OK');
1358+
});
1359+
13561360
app.get('/:apiKey/sse', async (req, res) => {
13571361
const apiKey = req.params.apiKey;
13581362
const transport = new SSEServerTransport(`/${apiKey}/messages`, res);

0 commit comments

Comments
 (0)