EventSource

Overview

The EventSource interface is web content's interface to server-sent events. An EventSource instance opens a persistent connection to an HTTP server, which sends events in text/event-stream format.

Location

 

close

Closes the connection, if any, and sets the readyState attribute to CLOSED. If the connection is already closed, the method does nothing.

 

method close

 

void close()

 

func close()

 

void close()

 

Sub close()

onerror

 

property onerror: EventListener read write;

 

EventListener onerror { get; set; }

 

var onerror: EventListener { get{} set{} }

 

EventListener onerror { __get; __set; }

 

Property onerror() As EventListener

onmessage

 

property onmessage: EventListener read write;

 

EventListener onmessage { get; set; }

 

var onmessage: EventListener { get{} set{} }

 

EventListener onmessage { __get; __set; }

 

Property onmessage() As EventListener

onopen

 

property onopen: EventListener read write;

 

EventListener onopen { get; set; }

 

var onopen: EventListener { get{} set{} }

 

EventListener onopen { __get; __set; }

 

Property onopen() As EventListener

readyState

 

property readyState: Double read;

 

Double readyState { get; }

 

var readyState: Double { get{} }

 

Double readyState { __get; }

 

ReadOnly Property readyState() As Double

url

 

property url: String read;

 

String url { get; }

 

var url: String { get{} }

 

String url { __get; }

 

ReadOnly Property url() As String

withCredentials

 

property withCredentials: Boolean read;

 

Boolean withCredentials { get; }

 

var withCredentials: Boolean { get{} }

 

Boolean withCredentials { __get; }

 

ReadOnly Property withCredentials() As Boolean

 

onerror

 

property onerror: EventListener read write;

 

EventListener onerror { get; set; }

 

var onerror: EventListener { get{} set{} }

 

EventListener onerror { __get; __set; }

 

Property onerror() As EventListener

onmessage

 

property onmessage: EventListener read write;

 

EventListener onmessage { get; set; }

 

var onmessage: EventListener { get{} set{} }

 

EventListener onmessage { __get; __set; }

 

Property onmessage() As EventListener

onopen

 

property onopen: EventListener read write;

 

EventListener onopen { get; set; }

 

var onopen: EventListener { get{} set{} }

 

EventListener onopen { __get; __set; }

 

Property onopen() As EventListener

readyState

 

property readyState: Double read;

 

Double readyState { get; }

 

var readyState: Double { get{} }

 

Double readyState { __get; }

 

ReadOnly Property readyState() As Double

url

 

property url: String read;

 

String url { get; }

 

var url: String { get{} }

 

String url { __get; }

 

ReadOnly Property url() As String

withCredentials

 

property withCredentials: Boolean read;

 

Boolean withCredentials { get; }

 

var withCredentials: Boolean { get{} }

 

Boolean withCredentials { __get; }

 

ReadOnly Property withCredentials() As Boolean

 

close

Closes the connection, if any, and sets the readyState attribute to CLOSED. If the connection is already closed, the method does nothing.

 

method close

 

void close()

 

func close()

 

void close()

 

Sub close()