toggle menu
kilua-project
0.0.17
common
switch theme
search in API
kilua-dom
/
web.dom
/
EventSource
Event
Source
open
class
EventSource
(
url
:
String
,
eventSourceInitDict
:
EventSourceInit
)
:
EventTarget
,
JsAny
Exposes the JavaScript
EventSource
to Kotlin
Members
Constructors
Event
Source
Link copied to clipboard
constructor
(
url
:
String
,
eventSourceInitDict
:
EventSourceInit
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
onerror
Link copied to clipboard
var
onerror
:
(
Event
)
->
Unit
?
onmessage
Link copied to clipboard
var
onmessage
:
(
MessageEvent
)
->
Unit
?
onopen
Link copied to clipboard
var
onopen
:
(
Event
)
->
Unit
?
ready
State
Link copied to clipboard
open
val
readyState
:
Short
url
Link copied to clipboard
open
val
url
:
String
with
Credentials
Link copied to clipboard
open
val
withCredentials
:
Boolean
Functions
add
Event
Listener
Link copied to clipboard
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
AddEventListenerOptions
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
AddEventListenerOptions
)
close
Link copied to clipboard
fun
close
(
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
remove
Event
Listener
Link copied to clipboard
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
EventListenerOptions
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
EventListenerOptions
)