EventSource.readyState - Web documentation
property EventSource.readyState

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

Type

number