package js_of_ocaml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Js_of_ocaml.WorkerSource

Low-level bindgins to javascript Web Workers.

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

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

Global function to be used by the worker.

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

Innovation. Community. Security.