=== PHASE 1: SIGTERM with 2 clients in a room; server stays down
  server exit after 142 ms code=0 sig=null; output: ["5.37s 2026-10-09T20:29:25.239Z [28W5] created (map open); 1 room(s)","5.38s 2026-10-09T20:29:25.250Z [28W5] Alice created as slot 0 (host) from 127.0.0.1","8.01s 2026-10-09T20:29:27.873Z [28W5] Bob joined as slot 1 from 127.0.0.1","8.81s received SIGTERM, shutting down"]
  0.2s A {"st":"remote:reconnecting","inGame":true,"ov":true,"lobby":false,"menu":false,"lobbyMsg":"","toasts":"Bob joined","resume":false,"ssRoom":"28W5","lsSession":true}
  0.3s B {"st":"remote:reconnecting","inGame":true,"ov":true,"lobby":false,"menu":false,"lobbyMsg":"","toasts":"Room 28W5","resume":false,"ssRoom":"28W5","lsSession":true}
  2.4s A {"st":"remote:reconnecting","inGame":true,"ov":true,"lobby":false,"menu":false,"lobbyMsg":"","toasts":"","resume":false,"ssRoom":"28W5","lsSession":true}
  2.5s B {"st":"remote:reconnecting","inGame":true,"ov":true,"lobby":false,"menu":false,"lobbyMsg":"","toasts":"","resume":false,"ssRoom":"28W5","lsSession":true}
  53.1s A {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"Lost connection to the server.","toasts":"Lost connection to the server.","resume":false,"ssRoom":null,"lsSession":false}
  53.5s B {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"Lost connection to the server.","toasts":"Lost connection to the server.","resume":false,"ssRoom":null,"lsSession":false}
  55.7s A {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"Lost connection to the server.","toasts":"","resume":false,"ssRoom":null,"lsSession":false}
  56.0s B {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"Lost connection to the server.","toasts":"","resume":false,"ssRoom":null,"lsSession":false}
=== PHASE 2: SIGTERM, restart after 3 s (typical systemctl restart)
  server back up at 3.5 s
  3.5s B {"st":"remote:reconnecting","inGame":true,"ov":true,"lobby":false,"menu":false,"lobbyMsg":"","toasts":"","resume":false,"ssRoom":"9LA5","lsSession":true}
  3.6s A {"st":"remote:reconnecting","inGame":true,"ov":true,"lobby":false,"menu":false,"lobbyMsg":"","toasts":"","resume":false,"ssRoom":"9LA5","lsSession":true}
  4.4s B {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"That room does not exist (any more).","toasts":"That room does not exist (any more).","resume":false,"ssRoom":null,"lsSession":false}
  4.4s A {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"That room does not exist (any more).","toasts":"That room does not exist (any more).","resume":false,"ssRoom":null,"lsSession":false}
  6.9s B {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"That room does not exist (any more).","toasts":"","resume":false,"ssRoom":null,"lsSession":false}
  6.9s A {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"That room does not exist (any more).","toasts":"","resume":false,"ssRoom":null,"lsSession":false}
  A creates new room via the lobby; B joins by code:
  recovered into room QVTC A players 2
=== PHASE 3: reload during downtime / after restart
  (page reload with server down gives the browser error page; A is now unusable until the server is back)
  A after reload, server restarted (room gone), sessionStorage has nw.room: {"st":"local:undefined","inGame":false,"ov":false,"lobby":true,"menu":false,"lobbyMsg":"Enter your name and press Join.","toasts":"","resume":false,"ssRoom":null,"lsSession":false}
errors [
  "[A] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[B-phone] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[A] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[B-phone] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[A] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[B-phone] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[A] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[B-phone] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[A] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED",
  "[B-phone] console.error: WebSocket connection to 'ws://127.0.0.1:8229/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"
]
