package js_of_ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
  • deprecated Will be removed past 2019-01-01. Use Js_of_ocaml.EventSource instead.
type state =
  1. | CONNECTING
  2. | OPEN
  3. | 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

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

OCaml

Innovation. Community. Security.