, there is no ready-made code.
From php to vue, a random number is passed to the vue, which is used to build this graph,
If you pass it through a web socket, then it is trivial, through the network tab to see it. and output it before the crash occurs.
The mechanism of the game itself:
1. a bet is made within 20 seconds.
2. And the graph begins to grow, the user at any time can click on the button to take the winnings.
And if he knows that the graph grows to 10 by looking at the websocket logs, there will be no fair play