This repository has been archived on 2025-07-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
vue-with-websockets/backend/consts.js
Leons Aleksandrovs ab26e9881f feat(ws): send history data and update data with web socket
Added following logic:
1. New clients receive 15 entry history from history file
2. After that, every 10 seconds when new entry is generated it is sent
out to all connected clients
2025-07-07 16:21:54 +03:00

7 lines
205 B
JavaScript

// Define global constants for min and max values
export const MAX = 100;
export const MIN = 0;
// Define range for random number generation
export const RANGE = 0.3; // +-0.3 -> +-30% of previous number