mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 08:49:16 +02:00
maps.fmdx.pl integration, various bugfixes, UI changes
This commit is contained in:
+9
-1
@@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user