class js.html.EventSource extends EventTarget
Available on js
The EventSource
interface is used to manage server-sent events. You can set the onmessage attribute to a JavaScript function to receive non-typed messages (that is, messages with no event
field). You can also call addEventListener()
to listen for events just like any other event source.
See Using server-sent events for further details.
Documentation for this class was provided by MDN.
Class Fields
Instance Fields
var readyState:Int
The state of the connection, must be one of CONNECTING
, OPEN
, or CLOSED
. Read only.