Readonly CLOSEDReadonly CONNECTINGReadonly OPENReadonly readyReturns the state of this EventSource object's connection. It can have the values described below.
Readonly urlReturns the URL providing the event stream.
Readonly withReturns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
Optional options: boolean | AddEventListenerOptionsOptional options: boolean | AddEventListenerOptionsOptional options: boolean | AddEventListenerOptionsDispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Optional options: boolean | EventListenerOptionsOptional options: boolean | EventListenerOptionsOptional options: boolean | EventListenerOptions
MDN Reference