jsha / blocktogether

Share your blocks and subscribe to others'
GNU General Public License v3.0
330 stars 68 forks source link

Handle 420 in stream.js #193

Closed jsha closed 9 years ago

jsha commented 9 years ago

Right now stream.js immediately reconnects, potentially getting in a loop. Instead it should respect the 420 status code and back off: https://dev.twitter.com/streaming/overview/connecting

jsha commented 9 years ago

420 was already handled, but there were some other cases where there wasn't enough backoff, now fixed.