refactor(server): migrate to fastify (#707)

This commit is contained in:
Trim21
2023-12-12 03:08:43 +08:00
committed by GitHub
parent f93c569c9b
commit e52cfc9170
5 changed files with 235 additions and 34 deletions

View File

@@ -17,7 +17,6 @@ export default (req: Request, res: Response, next: NextFunction) => {
// Keep the connection open by sending a message every so often.
const keepAliveTimeout = setInterval(() => {
res.write(':keep-alive\n\n');
res.flush();
}, 500);
// cleanup on close