Module Js_of_ocaml__.EventSource
class type 'a messageEvent = object ... endclass type eventSource = object ... endclass type options = object ... endval withCredentials : bool -> options Js_of_ocaml.Js.tval eventSource : (Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> eventSource Js_of_ocaml.Js.t) Js_of_ocaml.Js.constrval eventSource_options : (Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> options Js_of_ocaml.Js.t -> eventSource Js_of_ocaml.Js.t) Js_of_ocaml.Js.constrval addEventListener : eventSource Js_of_ocaml.Js.t as 'a -> 'b Js_of_ocaml.Dom.Event.typ -> ('a, 'b) Js_of_ocaml.Dom.event_listener -> bool Js_of_ocaml.Js.t -> Js_of_ocaml.Dom.event_listener_idAdd an event listener. This function matches the
addEventListenerDOM method, except that it returns an id for removing the listener.