EventSource

JS
1.1
open class EventSource : EventTarget

Exposes the JavaScript EventSource to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript EventSource to Kotlin

EventSource(
    url: String,
    eventSourceInitDict: EventSourceInit = definedExternally)

Properties

JS
1.1

onerror

var onerror: ((Event) -> dynamic)?
JS
1.1

onmessage

var onmessage: ((MessageEvent) -> dynamic)?
JS
1.1

onopen

var onopen: ((Event) -> dynamic)?
JS
1.1

readyState

open val readyState: Short
JS
1.1

url

open val url: String
JS
1.1

withCredentials

open val withCredentials: Boolean

Functions

JS
1.1

close

fun close()

Companion Object Properties

JS
1.1

CLOSED

val CLOSED: Short
JS
1.1

CONNECTING

val CONNECTING: Short
JS
1.1

OPEN

val OPEN: Short