voloko/twitter-stream — pull request #32 by mgartner (2012-05-10 14:07:46+00:00)
Title: Call-back for when no data is received for 90 seconds

According to the Twitter Stream documentation, a client should reconnect to the stream if no data is received for 90 seconds: https://dev.twitter.com/docs/streaming-api/user-streams/suggestions#algorithms.

This change adds a call-back for when this event happens, where the user can then determine to reconnect, or do any desired behavior. Code was borrowed from #16. Includes a test case.