faye/faye — pull request #182 by fxposter (2012-12-15 14:45:10+00:00)
Title: Implement proper reconnection

I noticed that eventually ruby Faye::Client loses connection to the server and does not reconnect to it. We are using websocket protocol and after digging into this I found that Transport::WebSocket#resend method is being called if @messages hash is empty and it does nothing. So if this happens - no reconnection occurs.

I've modified ruby client and javascript one (we saw same problems on the browser side).

Our usage of faye is mostly listening - our clients do not publish messages, only subscribing to them.