nsgenbind
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
EventSource Interface Reference

import"html.idl";

Inheritance diagram for EventSource:
EventTarget

Public Member Functions

void close ()
 
- Public Member Functions inherited from EventTarget
void addEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
void removeEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
boolean dispatchEvent (Event event)
 
void addEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
void removeEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
boolean dispatchEvent (Event event)
 

Public Attributes

readonly attribute DOMString url
 
readonly attribute boolean withCredentials
 
const unsigned short CONNECTING = 0
 
const unsigned short OPEN = 1
 
const unsigned short CLOSED = 2
 
readonly attribute unsigned short readyState
 
attribute EventHandler onopen
 
attribute EventHandler onmessage
 
attribute EventHandler onerror
 

Detailed Description

Definition at line 1815 of file html.idl.

Member Function Documentation

◆ close()

void EventSource::close ( )

Member Data Documentation

◆ CLOSED

const unsigned short EventSource::CLOSED = 2

Definition at line 1822 of file html.idl.

◆ CONNECTING

const unsigned short EventSource::CONNECTING = 0

Definition at line 1820 of file html.idl.

◆ onerror

attribute EventHandler EventSource::onerror

Definition at line 1828 of file html.idl.

◆ onmessage

attribute EventHandler EventSource::onmessage

Definition at line 1827 of file html.idl.

◆ onopen

attribute EventHandler EventSource::onopen

Definition at line 1826 of file html.idl.

◆ OPEN

const unsigned short EventSource::OPEN = 1

Definition at line 1821 of file html.idl.

◆ readyState

readonly attribute unsigned short EventSource::readyState

Definition at line 1823 of file html.idl.

◆ url

readonly attribute DOMString EventSource::url

Definition at line 1816 of file html.idl.

◆ withCredentials

readonly attribute boolean EventSource::withCredentials

Definition at line 1817 of file html.idl.


The documentation for this interface was generated from the following file: