mirror of
https://github.com/status-im/consul.git
synced 2025-02-12 21:56:46 +00:00
EventSources will wait for 1 tick before 'opening'. There is always the chance that the EventSource is '.close()'ed before that tick. We therefore check the 'readyState' before opening the EventSource