---
name: "Eliom_comet_base.client"
section: "3o"
platform: "linux"
package: "libeliom-ocaml-doc"
version: "4.0.0-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Eliom_comet_base.client"
---

# Eliom\_comet\_base.client(3o)

None means 'newest channel'

## NAME

Eliom\_comet\_base - None means 'newest channel'

## Module

Module   Eliom\_comet\_base

## Documentation

Module **Eliom\_comet\_base**\
  :  **sig end**

None means 'newest channel'

*type* **'a** *chan\_id*

*val string\_of\_chan\_id* :  **'a chan\_id -\> string**

*val chan\_id\_of\_string* :  **string -\> 'a chan\_id**

*type position* =\
  \| Newest **of** **int**\
  \| After **of** **int**\
  \| Last **of** **int option**

*module Json\_position :* **sig end**

*type comet\_stateless\_request* =  **(string \* position) array**

None means 'newest channel'

*module Json\_comet\_stateless\_request :* **sig end**

*type command* =\
  \| Register **of** **string**\
  \| Close **of** **string**

*module Json\_command :* **sig end**

*type comet\_stateful\_request* =\
  \| Request\_data **of** **int**\
  \| Commands **of** **command array**

*module Json\_comet\_stateful\_request :* **sig end**

*type comet\_request* =\
  \| Stateless **of** **comet\_stateless\_request**\
  \| Stateful **of** **comet\_stateful\_request**

*module Json\_comet\_request :* **sig end**

*val comet\_request\_param* :  **(comet\_request, \[ \`WithoutSuffix \],** **\[ \`One of comet\_request Eliom\_parameter.ocaml \]** **Eliom\_parameter.param\_name)** **Eliom\_parameter.params\_type**

*type* **'a** *channel\_data* =\
  \| Data **of** **'a**\
  \| Full\
  \| Closed

*module Json\_channel\_data :* **functor (M\_a : Deriving\_Json.Json) -\> sig end**

*type answer* =\
  \| Stateless\_messages **of** **(string \* (string \* int) channel\_data) array**\
  \| Stateful\_messages **of** **(string \* string channel\_data) array**\
  \| Timeout\
  \| Process\_closed\
  \| Comet\_error **of** **string**

*module Json\_answer :* **sig end**

*type comet\_service* =  **(unit, comet\_request, Eliom\_service.service\_kind,** **\[ \`WithoutSuffix \], unit,** **\[ \`One of comet\_request Eliom\_parameter.ocaml \]** **Eliom\_parameter.param\_name, Eliom\_service.registrable,** **Eliom\_registration.http\_service)** **Eliom\_service.service**

*type internal\_comet\_service* =  **(unit, comet\_request, Eliom\_service.internal\_service\_kind,** **\[ \`WithoutSuffix \], unit,** **\[ \`One of comet\_request Eliom\_parameter.ocaml \]** **Eliom\_parameter.param\_name, \[ \`Registrable \],** **Eliom\_registration.http\_service)** **Eliom\_service.service**

*type stateless\_kind* =\
  \| After\_kind **of** **int**\
  \| Newest\_kind **of** **int**\
  \| Last\_kind **of** **int option**

*type* **'a** *wrapped\_channel* =\
  \| Stateful\_channel **of** **(comet\_service \* 'a chan\_id)**\
  \| Stateless\_channel **of** **(comet\_service \* 'a chan\_id \*** **stateless\_kind)**

*type* **'a** *bus\_send\_service* =  **(unit, 'a list, \[ \`Nonattached of \[ \`Post \] Eliom\_service.na\_s \],** **\[ \`WithoutSuffix \], unit,** **\[ \`One of 'a list Eliom\_parameter.ocaml \] Eliom\_parameter.param\_name,** **\[ \`Registrable \], Eliom\_registration.http\_service)** **Eliom\_service.service**

*type* **('a, 'b)** *wrapped\_bus* =  **'b wrapped\_channel \* 'a bus\_send\_service**
