EventSource icon indicating copy to clipboard operation
EventSource copied to clipboard

eventSource?.readyState Not Updating to closed on network disconnect

Open narendra-ct opened this issue 4 years ago • 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"

narendra-ct avatar Jul 11 '20 11:07 narendra-ct

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

tbaranes avatar Nov 09 '20 09:11 tbaranes

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

tbaranes avatar Nov 09 '20 09:11 tbaranes