property
EventSource.readyState
readonly readyState: number
Returns the state of this EventSource object's connection: CONNECTING (0), OPEN (1), or CLOSED (2).