package brr

  1. Overview
  2. Docs
Browser programming toolkit for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

brr-0.0.7.tbz
sha512=4b3d42eb6a32c1d6f1c5ef003f5311b5029156b31f6e51af098b695c769699e0304b66afd2dd574ecf1084e095bbbc4eac552daab083766cd81ed2f1d9897d51

doc/brr/Brr_webworkers/Service_worker/index.html

Module Brr_webworkers.Service_worker

Service workers.

See the Service Worker API.

The fetch caches and events are in Brr_io.Fetch.

Registration

These APIs are used by the web page to install the service worker. Start your journey with Service_worker.Container.of_navigator.

module Update_via_cache : sig ... end

Update via cache enum.

module State : sig ... end

State enum.

type t

The type for ServiceWorker objects.

type service_worker = t

See t.

val as_worker : t -> Worker.t

as_worker w is w as a worker.

val as_target : t -> Brr.Ev.target

as_target w is w as an event target.

val script_url : t -> Jstr.t

script_url w is the script URL specified during registration for w.

val state : t -> State.t

state w is the state of w.

module Navigation_preload_manager : sig ... end

Ressources preloading

module Registration : sig ... end

Service registration objects.

module Container : sig ... end

Service worker containers.

Service worker context

These APIs are used by the service worker.

module Client : sig ... end

Client objects.

module Clients : sig ... end

Clients objects.

module G : sig ... end

Service worker global properties and functions.

OCaml

Innovation. Community. Security.