package eliom
Advanced client/server Web and mobile framework
Install
Dune Dependency
Authors
Maintainers
Sources
10.4.1.tar.gz
md5=218bcb5cd275cc05be06574c5fa357fa
sha512=edbf8b084ec1b7439d4715199c22eb925a77a2dcfbe76bb5bbc4b9d076b70be1b0de74f9eab9dfb7854df28d65eb31a4c17380528d4a461d9c2a4222abe804cc
doc/eliom.server/Eliom_react/Down/index.html
Module Eliom_react.Down
Source
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; ... }}
The abstract type of down events.
Source
val 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 (SeeEliom_comet.create
).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>