Shopify/dashing — pull request #43 by tsantef (2012-12-06 09:54:31+00:00)
Title: Fixes bug where widgets constantly get reset when EventSource degrades to polling.

When hosted on cloud services that close inactive connections, EventSource degrades to polling the /events endpoint every few seconds. This causes all event subscribing widgets to be reset on every poll. The fix is to compare the updatedAt of the last event with the current event's updatedAt and only update widgets when they differ.

To test remove :keep_open from the stream in dashing.rb to simulate a host that closes connections.