Hierarchy

Properties

CLOSED: number
CONNECTING: number
OPEN: number
onerror: null | ((this: EventSource, ev: Event) => any)
onmessage: null | ((this: EventSource, ev: MessageEvent<any>) => any)
onopen: null | ((this: EventSource, ev: Event) => any)
readyState: number

Returns the state of this EventSource object's connection. It can have the values described below.

url: string

Returns the URL providing the event stream.

withCredentials: boolean

Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.

Methods

  • Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

Generated using TypeDoc