call remote shutdown on app quit

This commit is contained in:
jeffvli
2025-06-02 20:32:05 -07:00
parent 7562c619d2
commit 8f692b6f4d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ function send({ client, data, event }: SendData): void {
}
}
const shutdownServer = () => {
export const shutdownServer = () => {
if (wsServer) {
wsServer.clients.forEach((client) => client.close(4000));
wsServer.close();