Js_of_ocaml.EventSourceEventSource binding
class type 'a messageEvent = object ... endclass 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.