Fix admin socket metadata handling and footer HTML rendering in admin-tools

This commit is contained in:
David Rotermund
2026-09-22 02:41:42 +02:00
committed by yu-i-i
parent 24e2fdaab5
commit 345bc57e36
3 changed files with 54 additions and 8 deletions
@@ -69,15 +69,15 @@ const AdminController = {
let url
const openSockets = {}
for (url in http.globalAgent.sockets) {
openSockets[`http://${url}`] = http.globalAgent.sockets[url].map(
socket => socket._httpMessage.path
)
openSockets[`http://${url}`] = http.globalAgent.sockets[url].map(socket => {
return socket._httpMessage?.path || '(unknown request)'
})
}
for (url in https.globalAgent.sockets) {
openSockets[`https://${url}`] = https.globalAgent.sockets[url].map(
socket => socket._httpMessage.path
)
openSockets[`https://${url}`] = https.globalAgent.sockets[url].map(socket => {
return socket._httpMessage?.path || '(unknown request)'
})
}
const systemMessages =