mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
call remote shutdown on app quit
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user