This commit is contained in:
2026-04-04 22:29:43 +02:00
parent c0ad53563e
commit e8d91086c7
3 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -10,6 +10,10 @@ function send_to_xrd(data) {
});
}
function send_xrd_online(fmusers) {
send_to_xrd(`o${currentUsers},${fmusers}\n`);
}
xrd.on('connection', (ws, request) => {
const { initialData } = require('./datahandler');
const { isAdminAuthenticated } = request.session || {};
@@ -37,4 +41,4 @@ xrd.on('connection', (ws, request) => {
storage.websocket_delegation.set("/xrd", xrd);
module.exports = send_to_xrd;
module.exports = { send_to_xrd, send_xrd_online};