The EventSource interface is used to receive server-sent events. It connects to a server over HTTP and receives events in text/event-stream format without closing the connection.
Documentation EventSource by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Constructor
Variables
Is an EventHandler being called when an error occurs and the error event is dispatched on this object.
Is an EventHandler being called when a message event is received, that is when a message is coming from the source.
Is an EventHandler being called when an open event is received, that is when the connection was just opened.
read onlyreadyState:Int
An unsigned short representing the state of the connection. Possible values are CONNECTING (0), OPEN (1), or CLOSED (2).