fix(deps): switch back to non-ESM packages
Node 18 has not the ability yet to run the more modern packages. Since we want to keep Node 18 compatability around for some time, these packages can't be upgraded. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Philip Molares
parent
389302e6bb
commit
ffc1e5f87d
2
app.js
2
app.js
@@ -356,7 +356,7 @@ function handleTermSignals () {
|
||||
alreadyHandlingTermSignals = true
|
||||
realtime.maintenance = true
|
||||
// disconnect all socket.io clients
|
||||
io.sockets.sockets.keys().forEach(function (key) {
|
||||
Array.from(io.sockets.sockets.keys()).forEach(function (key) {
|
||||
const socket = io.sockets.sockets.get(key)
|
||||
if (!socket) return
|
||||
// notify client server going into maintenance status
|
||||
|
||||
Reference in New Issue
Block a user