EventSource class

Constructors

EventSource(IStringDictionary<string>)

Properties

attach
attachListener
dispose
isDisposed
metadata
onEvent

Constructor Details

EventSource(IStringDictionary<string>)

new EventSource(metadata?: IStringDictionary<string>)

Parameters

metadata
IStringDictionary<string>

Property Details

attach

attach: (onEventCallback: (event: TEvent) => void) => IDetachable

Property Value

(onEventCallback: (event: TEvent) => void) => IDetachable

attachListener

attachListener: (listener: IEventListener<TEvent>) => IDetachable

Property Value

(listener: IEventListener<TEvent>) => IDetachable

dispose

dispose: () => void

Property Value

() => void

isDisposed

isDisposed: () => boolean

Property Value

() => boolean

metadata

metadata: IStringDictionary<string>

Property Value

onEvent

onEvent: (event: TEvent) => void

Property Value

(event: TEvent) => void