ollieglass/pusher-d3-demo — pull request #2 by leggetter (2012-04-18 09:23:15+00:00)
Title: adding Timer interval functionality to just send tweet count

Update so that only the count, which is the only thing the client does, is sent from the server to the client. The update rate is also now configurable to be sent at an interval. The example config sets this to an update every 1 second.

The purpose of this pull request is to demonstrate the it's good practice to only send the data that the client really needs; amongst other things, this is good for performance reasons.

See additional comments in the code.