Skip to content

Type Alias: EventSourceConstructor ​

ts
type EventSourceConstructor = (url, init?) => EventSourceLike;

Defined in: providers/event-source.ts:12

A constructor that is compatible with EventSource.

Parameters ​

ParameterType
urlstring
init?{ withCredentials?: boolean; }
init.withCredentials?boolean

Returns ​

EventSourceLike