inaka/EventSource

eventSource?.readyState Not Updating to closed on network disconnect

narendra-ct opened this issue · 2 comments

Hi..

  • Observed eventSource?.readyState is still "Open" state even after network disconnection.

Steps

  • Connect with eventSource
  • Turn off network
  • Triggered onComplete callback. Still the eventSource?.readyState is not updated to "Closed"

Friendly ping about this issue, is that an expected behaviour?

I opened a PR (#146) to fixed this behaviour since I don't think it's expected