scratch-vm/src/util
Eric Rosenbaum 39be6d873c
Rate-limiting with a token bucket for the WeDo extension (#1540)
* Initial version of token bucket

* Add rateLimiter util

* Remove check for motor.isOn in stopAllMotors

* Fix unit test

* Fix unit test with stubbed timer, and cleanup

* Add comment

* Reduce WeDo rate limit to 20 sends/sec

* Move rate limit into a constant

* Stop button stops motors and tone even if rate limit exceeded
2018-08-29 17:37:59 -04:00
..
base64-util.js
cast.js
clone.js
color.js
jsonrpc-web-socket.js
jsonrpc.js
log.js
math-util.js Preserve sprite layer order information across saving and loading an sb3. 2018-07-24 11:00:48 -04:00
maybe-format-message.js
rateLimiter.js Rate-limiting with a token bucket for the WeDo extension (#1540) 2018-08-29 17:37:59 -04:00
string-util.js Fix various jsdoc issues preventing the docs from building 2018-07-31 11:22:42 -04:00
timer.js
uid.js
xml-escape.js