module Eliom_comet:Handle unsolicited server to client communications.sig
..end
See the Eliom manual for a detailed introduction to the concept of
.
To stop receiving inputs from a channel, use Lwt.cancel on a
thread waiting for datas. For instance, if you iterate with
let t = Lwt_stream.iter f %channel
calling Lwt.cancel t
will close the channel.
exception Channel_full
Channel_full
is raised when trying to read on a channel marked
full by the server. It is not possible to read anything else from a
full channel.exception Process_closed
Process_closed
is raised when reading on a channel and the
server side of the application closed the client process.
This apply only to stateful channelsexception Channel_closed
Process_closed
is raised when reading on a channel and the
server side of the application closed channel ( the channel
was garbage collected ). This apply only to stateless channelsval is_active : unit -> bool
is_active ()
returns the current activity stateval activate : unit -> unit
activate ()
launch a new xhr
connection to start receiving server messagesmodule Configuration:sig
..end
module Channel:sig
..end