package brr

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

Module Service_worker.ClientSource

Client objects.

Enumerations

Sourcemodule Visibility_state : sig ... end

Visibility state enum.

Sourcemodule Type : sig ... end

Client type enum.

Sourcemodule Frame_type : sig ... end

Frame type enum.

Clients

Sourcetype t

The type for Client objects.

Sourcetype client = t

See t.

Sourceval url : t -> Jstr.t

url c is the URL of c.

Sourceval frame_type : t -> Frame_type.t

frame_type c is the frame type of c.

Sourceval id : t -> Jstr.t

id c is the id of c.

Sourceval type' : t -> Type.t

type' c is the type of c.

Sourceval post : ?opts:Brr_io.Message.opts -> t -> 'a -> unit

post ~opts c v posts value v to client c with options opts (the target_origin option is meaningless in this case).

Window clients

Sourcemodule Window : sig ... end

Window clients.