diff --git a/sync.ts b/sync.ts index 9fea22f..bf50a5c 100644 --- a/sync.ts +++ b/sync.ts @@ -131,3 +131,10 @@ wsServer.on('request', function (request) { } }); }); + +process.on('SIGINT', function () { + process.exit(); +}); +process.on('SIGTERM', function () { + process.exit(); +});