PreadyState
Bun

property

EventSource.readyState

readonly readyState: number

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

MDN Reference