Initial upload to Gitea

This commit is contained in:
antonn committed 2026-11-30 16:32:37 +00:00
1 parent 78193254ad
commit 8478998cae
1485 files changed
+461025 -42348

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
"use strict";
// adpanel:socket-room-isolation - server identifiers must never be used as
// bare room keys; a valid server name can also name a privileged room.
const SERVER_STATUS_ROOM_PREFIX = "server-status:";
function getServerStatusRoom(serverName) {
return `${SERVER_STATUS_ROOM_PREFIX}${String(serverName || "").trim()}`;
}
function getConsoleRoom(serverName) {
return `console:${String(serverName || "").trim()}`;
}
module.exports = { getServerStatusRoom, getConsoleRoom, SERVER_STATUS_ROOM_PREFIX };