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
-1
View File
@@ -13,7 +13,6 @@ class ServerEvent {
this.res.write(`id:${id}\n`);
this.res.write(`event:${eventType}\n`);
this.res.write(`data:${JSON.stringify(data)}\n\n`);
this.res.flush();
}
}