Module ServerSource

Sourcetype t
Sourceval listen : < Cap.network.. > -> ?lines:bool -> bind:string -> port:int -> unit -> t * int
Sourcetype event =
  1. | Joined of int
  2. | Message of int * string
  3. | Left of int
Sourceval step : t -> event list
Sourceval send : t -> int -> string -> unit
Sourceval flush : t -> unit
Sourceval close : t -> int -> unit
Sourceval wait : t -> float -> unit
Sourceval clients : t -> int list