Js_of_ocaml.EventSourceEventSource binding
class type 'a messageEvent = ['a, Js.js_string Js.t] Js_of_ocaml__.Dom_html.messageEventThe type parameter 'a is the type of the event target; the data payload of an EventSource message is always js_string t.
class type eventSource = object ... endclass type options = object ... endval eventSource : (Js.js_string Js.t -> eventSource Js.t) Js.constrval eventSource_options :
(Js.js_string Js.t -> options Js.t -> eventSource Js.t) Js.constrval addEventListener :
(eventSource Js.t as 'a) ->
'b Dom.Event.typ ->
('a, 'b) Dom.event_listener ->
bool Js.t ->
Dom.event_listener_idAdd an event listener. This function matches the addEventListener DOM method, except that it returns an id for removing the listener.