v2.2.4: Fix notification setting bypass and misleading reconnect message

- EVENTS.ERROR handler now respects browserNotifications setting
- Graceful shutdown message no longer implies manual reconnect
This commit is contained in:
Timo
2026-06-10 01:33:45 +02:00
parent c62da66b06
commit 131afadc1d
7 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -797,7 +797,7 @@ export function startServer(port = PORT, host) {
function gracefulShutdown(signal) {
log('SERVER', `${signal} received — starting graceful shutdown...`);
// 1. Notify all connected clients so they can display a meaningful message
io.emit(EVENTS.ERROR, { message: 'Server is restarting. Please reconnect in a moment.' });
io.emit(EVENTS.ERROR, { message: 'Server is restarting. Reconnecting automatically...' });
// 2. Stop accepting new HTTP connections
httpServer.close(() => {
log('SERVER', 'HTTP server closed. Exiting.');