Variable EventSource
EventSource: {
CLOSED: 2;
CONNECTING: 0;
OPEN: 1;
prototype: EventSource;
new (url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
}
CLOSED: 2;
CONNECTING: 0;
OPEN: 1;
prototype: EventSource;
new (url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
}
Type declaration
- new (url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource
- Parameters- url: string | URL
- OptionaleventSourceInitDict: EventSourceInit
 - Returns EventSource
 
- ReadonlyCLOSED: 2
- ReadonlyCONNECTING: 0
- ReadonlyOPEN: 1
- prototype: EventSource