Websocket Debounce
Opened this issue · 2 comments
urgent commented
First look for something general with the event, not the websocket:
https://davidwalsh.name/javascript-debounce-function
Don't render socket events one at a time. Debounce, and use ReactDOM.unstable_batchedUpdates()
Make a utility function that accepts event and effect as parameters.
Exponentially back off. Render first one, then second, then ten.
Timeout after 5 seconds.
urgent commented