Closed mgartner closed 12 years ago
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.
Looks good, all specs still pass.
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.