package eliom

  1. Overview
  2. Docs
Client/server Web and mobile framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

10.1.2.tar.gz
md5=4ed25da253920c4d30672c52daae8c86
sha512=c5a0ff26c3b605e9807ba37b0f0c98f05af763c585a42621412dae59589fea8ffa9aa279d4af5e59a3a20a01f955f1e9d035ad6d63cd25bb309fec3ab5514929

doc/eliom.server/Eliom_react/Down/index.html

Module Eliom_react.DownSource

Event from server to client.

A "Down event" (AKA down-going event) is an event which occurrences are transmitted asynchronously to the client. Even if they are named "events", it might be better to consider them as asynchronous server-to-client edges in the react events dependency graph.

To use this, call function of_react on server side, and just use the returned value as a react event on client side. Example: let e = of_react ... in ... {{ ... React.E.map f %e; ... }}

Sourcetype 'a t

The abstract type of down events.

Sourceval of_react : ?scope:[< Eliom_comet.Channel.comet_scope ] -> ?throttling:float -> ?name:string -> ?size:int -> 'a React.E.t -> 'a t

of_react ?scope ?throttling ?name e create an asynchronous edge originating from e. The parameters are:

  • throttling for the limit to event propagation rate (minimum time, in second, between two consecutive events - other events are lost),
  • name for named edges,
  • size for the size of the server side buffer.
  • scope tell which kind of channel this rely on (See Eliom_comet.create).
OCaml

Innovation. Community. Security.