Pass spin({ timeoutMs }) (or a signal) — if setResult never arrives, the spin rejects so you can surface an error.
Answered
Spinning, speed & stopping
How do I add a timeout/watchdog if the server never sends a result?
More in Spinning, speed & stopping
- How do I start a spin?
- How do I stop the reels on a result?
- How do I know when a spin has completely finished?
- How do I stagger reel starts so they begin one after another?
- How do I make the reels stop left to right?
- How do I add a turbo / fast-spin mode?
- How do I slam-stop the reels on a second button press?
- How do I boost only the current spin without changing the speed profile?