Closed willdurand closed 12 years ago
I have added support to specify it. But I would like to note that this is absolutely not recommended. The whole point of EventSource is that you can maintain a persistent connection and reduce latency. If you don't take advantage of that, you might as well be using AJAX polling. ;-)
EDIT: Note that you don't have to use while+sleep, there are other use cases / methods.
That makes sense indeed. But, I didnt it was not recommended at all :/
Le 3 janv. 2012 à 00:17, Igor Wiedlerreply@reply.github.com a écrit :
I have added support to specify it. But I would like to note that this is absolutely not recommended. The whole point of EventSource is that you can maintain a persistent connection and reduce latency. If you don't take advantage of that, you might as well be using AJAX polling. ;-)
Reply to this email directly or view it on GitHub: https://github.com/igorw/EventSource/issues/2#issuecomment-3334768
Hi,
What about adding a support for the
retry:
line to define the timeout value ? See http://www.html5rocks.com/en/tutorials/eventsource/basics/#toc-reconnection-timeoutThat way we could avoid the infinite loop +
sleep()
:)William