This is client API (go to server)

Module Eliom_bus

module Eliom_bus : sig..end

Broadcasting facilities between clients and server.

See the Eliom manual for a detailed introduction to the concept of client server communication.


type ('a, 'b) t
val stream : ('a, 'b) t -> 'b Lwt_stream.t

stream b returns the stream of data sent to bus b. A new stream is created each time this function is called. Some messages from the bus can be lost if they were sent before the call to stream. If you need to receive every message, use original stream instead.

val original_stream : ('a, 'b) t -> 'b Lwt_stream.t

stream b returns the stream of data sent to bus b. A new stream is created each time this function is called. Every messages sent to the bus after the generation of the page are received. This function can be called only in the onload event handler, if called outside, it will raise a Failure.

val write