-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Line: 13
trakr.app//server/controllers/dataController.js
Lines 10 to 20 in 3df6a99
| // we check what mode user is in | |
| // set throttle based on mode and only save data we need, maybe send full telemetry to frontend | |
| /** | |
| * TODO: Cache each map and maybe, only sync db and cache to stop async calls in main function | |
| * category=nuxt | |
| */ | |
| export const throttledWrite = async (msg, rinfo, gameId) => { | |
| // Checks | |
| const userId = idFromIp(rinfo.address) | |
| if (users[userId] === undefined || users[userId].udp === undefined) { return } |
Reactions are currently unavailable