EventSource
open class EventSource(val url: String, init: EventSourceInit = definedExternally) : EventTarget(source)
The EventSource
interface is web content's interface to server-sent events.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The readyState
read-only property of the EventSource interface returns a number representing the state of the connection.
Link copied to clipboard
The withCredentials
read-only property of the EventSource interface returns a boolean value indicating whether the EventSource
object was instantiated with CORS credentials set.
Functions
Link copied to clipboard
The dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Link copied to clipboard
fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions? = definedExternally): Observable<T>