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

 

addEventListener (dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(partype: dynamic; parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

func addEventListener(_ partype: dynamic, _ parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

Sub addEventListener(partype As dynamic, parlistener As dynamic)

Parameters:

  • partype:
  • parlistener:

addEventListener (dynamic, dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)

Parameters:

  • type:
  • listener:
  • options:

addEventListener (dynamic, dynamic, Boolean)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)

Parameters:

  • type:
  • listener:
  • useCapture:

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

removeEventListener    (declared in EventTarget)

Removes an event listener from the EventTarget.

 

method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • paruseCapture:

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

 

addEventListener (dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(partype: dynamic; parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

func addEventListener(_ partype: dynamic, _ parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

Sub addEventListener(partype As dynamic, parlistener As dynamic)

Parameters:

  • partype:
  • parlistener:

addEventListener (dynamic, dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)

Parameters:

  • type:
  • listener:
  • options:

addEventListener (dynamic, dynamic, Boolean)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)

Parameters:

  • type:
  • listener:
  • useCapture:

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()

removeEventListener    (declared in EventTarget)

Removes an event listener from the EventTarget.

 

method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • paruseCapture: