readyState property

num get readyState

Returns the state of this EventSource object's connection. It can have the values described below.

MDN Reference

Implementation

_i2.num get readyState => _i4.getProperty(
      this,
      'readyState',
    );