Module Js_of_ocaml__.EventSource

type state =
| CONNECTING
| OPEN
| CLOSED
class type 'a messageEvent = object ... end
class type eventSource = object ... end
class type options = object ... end
val withCredentials : bool -> options Js_of_ocaml.Js.t
val eventSource : (Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> eventSource Js_of_ocaml.Js.t) Js_of_ocaml.Js.constr
val 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.constr
val 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_id

Add an event listener. This function matches the addEventListener DOM method, except that it returns an id for removing the listener.