This is server API (go to client)

Module Eliom_notif

module Eliom_notif : sig..end

Server to client notifications.

This module makes it possible for client side applications to be notified of changes on some indexed data (resources) on the server.

Apply functor Make or Make_Simple for each type of data you want to be able to listen on. Each client starts listening on one piece of data by calling function listen with the index of that piece of data as parameter. Client stops listening by calling function unlisten, or when the client side state is closed (by timeout or when the client disconnects for example).

When the data is modified on server side, call function notify with the index of the data, and all clients listening to that piece of data will receive a notification.

The functor will also create a client side react signal that will be updated every time the client is notified.

See module Os_notif in Ocsigen Start for an example of use.


module type S = sig..end

Signature of the functors Eliom_notif.Make and Eliom_notif.Make_Simple.

module type ARG = sig..end

ARG is for making Make

module Make : functor (A : ARG) -> 
  
  S
with type ident