Initial upload to Gitea
This commit is contained in:
1 parent
78193254ad
commit
8478998cae
1485 files changed
+461025
-42348
No files matched your search
@@ -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 };
|
||||
Reference in new issue
Block a user