I noticed my Javascript web app degraded from STREAMING to POLLING for pushing server data while running. In FireBug, it was a long running request to control.html. But suddenly, as if triggered by something which was unknown to me, there were one request for bind_session.js every second. I understood this was polling due to the fact that Moderato limits one push per second.

What I don't understand is why this degrade happened. What could have caused it?

In my Javascript code, I tried to re-connect to use STREAMING as soon as I detect the POLLING occurs. Is this a recommended practice? Below is my code snippet:

onStatusChange = function(newStatus)
    if(newStatus == 'POLLING')
Thanks a lot.