This commit is contained in:
syuilo 2023-06-09 12:47:36 +09:00
parent 8ccf954065
commit 13870c63b0
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ export class StreamingApiServerService {
});
});
// 一定期間通信が無いコネクションは実際には切断されている可能性があるため定期的にterminateする
this.#cleanConnectionsIntervalId = setInterval(() => {
const now = Date.now();
for (const [connection, lastActive] of this.#connections.entries()) {