rmosolgo / react-rails-hot-loader

Live-reload React.js components with Ruby on Rails & react-rails
MIT License
88 stars 24 forks source link

Fix queue issue in handle_message() #11

Closed diwaniuk closed 8 years ago

diwaniuk commented 8 years ago

In a case when processing request on server side take longer that default interval (1500ms), calls with the same timestamp are queued and processed couple times. In effect, a new change is sent to client several times.
This fixes this issue by storing history latest processed client timestamp and skip already done.

rmosolgo commented 8 years ago

nice, thanks! Looks like an unrelated test failure ... this test suite is ... a bit brittle!