1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

maps.fmdx.pl integration, various bugfixes, UI changes

This commit is contained in:
NoobishSVK
2024-01-20 23:21:37 +01:00
parent 0cd9661619
commit 135b2c838d
8 changed files with 143 additions and 45 deletions

View File

@@ -139,6 +139,7 @@ var dataToSend = {
af: [],
rt0: '',
rt1: '',
users: ''
};
const initialData = {
@@ -153,6 +154,7 @@ const initialData = {
af: [],
rt0: '',
rt1: '',
users: ''
};
const resetToDefault = dataToSend => Object.assign(dataToSend, initialData);
@@ -244,6 +246,12 @@ function handleData(ws, receivedData) {
}
}
function showOnlineUsers(currentUsers) {
console.log(currentUsers);
dataToSend.users = currentUsers;
initialData.users = currentUsers;
}
module.exports = {
handleData
handleData, showOnlineUsers
};