You've already forked fm-dx-webserver
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:
@@ -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