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
Optional
eventSourceInitDict: EventSourceInit
Returns EventSource
Readonly
CLOSED: 2Readonly
CONNECTING: 0Readonly
OPEN: 1prototype: EventSource