package websocketaf

  1. Overview
  2. Docs

Module Websocketaf.WsdSource

Sourcemodule IOVec = Httpaf.IOVec
Sourcetype mode = [
  1. | `Client of unit -> int32
  2. | `Server
]
Sourcetype t
Sourceval create : mode -> t
Sourceval schedule : t -> kind:[ `Text | `Binary ] -> Bigstringaf.t -> off:int -> len:int -> unit
Sourceval send_bytes : t -> kind:[ `Text | `Binary ] -> Bytes.t -> off:int -> len:int -> unit
Sourceval send_ping : t -> unit
Sourceval send_pong : t -> unit
Sourceval flushed : t -> (unit -> unit) -> unit
Sourceval close : t -> unit
Sourceval next : t -> [ `Write of Bigstringaf.t IOVec.t list | `Yield | `Close of int ]
Sourceval report_result : t -> [ `Ok of int | `Closed ] -> unit
Sourceval is_closed : t -> bool
Sourceval when_ready_to_write : t -> (unit -> unit) -> unit
OCaml

Innovation. Community. Security.