mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
whoops
This commit is contained in:
@@ -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};
|
||||
Reference in New Issue
Block a user