EventSource$Typings extension

on

Properties

addEventListener → ({void Function<K$>(EventSourceEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, dynamic listener(MessageEvent), [Object? options]) $2, void Function(String type, Object listener, [Object? options]) $3})

Available on EventSource, provided by the EventSource$Typings extension

Overload accessor: $1, $2, $3
no setter
close ↔ void Function()

Available on EventSource, provided by the EventSource$Typings extension

getter/setter pair
closed num

Available on EventSource, provided by the EventSource$Typings extension

no setter
connecting num

Available on EventSource, provided by the EventSource$Typings extension

no setter
onerror ↔ dynamic Function(Event)?

Available on EventSource, provided by the EventSource$Typings extension

MDN Reference
getter/setter pair
onmessage ↔ dynamic Function(MessageEvent)?

Available on EventSource, provided by the EventSource$Typings extension

MDN Reference
getter/setter pair
onopen ↔ dynamic Function(Event)?

Available on EventSource, provided by the EventSource$Typings extension

MDN Reference
getter/setter pair
open num

Available on EventSource, provided by the EventSource$Typings extension

no setter
readyState num

Available on EventSource, provided by the EventSource$Typings extension

Returns the state of this EventSource object's connection. It can have the values described below.
no setter
removeEventListener → ({void Function<K$>(EventSourceEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, dynamic listener(MessageEvent), [Object? options]) $2, void Function(String type, Object listener, [Object? options]) $3})

Available on EventSource, provided by the EventSource$Typings extension

Overload accessor: $1, $2, $3
no setter
url String

Available on EventSource, provided by the EventSource$Typings extension

Returns the URL providing the event stream.
no setter
withCredentials bool

Available on EventSource, provided by the EventSource$Typings extension

Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
no setter