Detecting a disconnection client-side using Faye

I’ve seen a couple of questions about this on various forums out there. The common goal is to detect a disconnection from the server on the client-side when using Faye. Some people start discussing heartbeating as seen in Socket.IO but in Faye, the solution is much simpler. Say you have an App.faye = new Faye.Client(..) […]