package js_of_ocaml

  1. Overview
  2. Docs
Compiler from OCaml bytecode to Javascript

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-3.8.0.tbz
sha256=9ed1424afd3eeafa5c5a031d817326edd751da58bda9a16fb4fcb1ee55f43219
sha512=e4855e242e4b0c6b396154e3d093fb5de28e4073efb1df00ee91ad52fad8530425498f4ff46631f128a9c792225f53c2046eeaea81517281cee1e3442a347578

doc/js_of_ocaml/Js_of_ocaml/Worker/index.html

Module Js_of_ocaml.Worker

Low-level bindgins to javascript Web Workers.

See the documented Javascript API and some more general documentation about the usage of WebWorker.

class type ['a, 'b] worker = object ... end
class type errorEvent = object ... end
class type 'a messageEvent = object ... end
val create : string -> ('a, 'b) worker Js.t

Global function to be used by the worker.

val import_scripts : string list -> unit
val set_onmessage : ('a -> unit) -> unit
val post_message : 'a -> unit
OCaml

Innovation. Community. Security.