readyState

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

MDN Reference