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})
Overload accessor: $1, $2, $3
no setter
close ↔ void Function()
getter/setter pair
closed num
no setter
connecting num
no setter
onerror ↔ dynamic Function(Event)?
MDN Reference
getter/setter pair
onmessage ↔ dynamic Function(MessageEvent)?
MDN Reference
getter/setter pair
onopen ↔ dynamic Function(Event)?
MDN Reference
getter/setter pair
open num
no setter
readyState num
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})
Overload accessor: $1, $2, $3
no setter
url String
Returns the URL providing the event stream.
no setter
withCredentials bool
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