Coyote Browser / Reference

A fresh HTML5 browser engine for HBBTV and embedded systems

²
  • Home
  • FAQ
  • About

Reference Index > Browser Objects

EventSource

Interface Specification

WhatWG Logo from https://html.spec.whatwg.org/multipage/server-sent-events.html#the-eventsource-interface
interface EventSource
{
readonly attribute USVString 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;
void close();
};
W3C Logo from https://www.w3.org/TR/2012/CR-eventsource-20121211/#the-eventsource-interface
interface EventSource
{
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;
void close();
};
};

Implementation status

Number of constants in JS interface: 0/3
Number of attributes in JS interface: 0/12
Number of functions in JS interface: 1/2

FunctionImplementation status
closeUnsupported
closeUnsupported

Browser & Device compatibility

Device typeSupport Status
Desktop PC browsersYes
HBBTV 1.5 devicesYes
HBBTV 2.0.x devicesYes

Notes

none

This page has been generated automatically from source code by the CoyoteBrowser InfoTool on Tue Jan 05 16:54:08 2021 . Some design elements from MDN are used under CC-BY-SA license from "Mozilla Contributors".