package dream-httpaf

  1. Overview
  2. Docs
type mode = [
  1. | `Client of unit -> int32
  2. | `Server
]
type t
val create : mode -> t
val schedule : t -> kind:[ `Text | `Binary | `Continuation ] -> Bigstringaf.t -> off:int -> len:int -> unit
val send_bytes : t -> kind:[ `Text | `Binary | `Continuation ] -> Bytes.t -> off:int -> len:int -> unit
val send_ping : t -> unit
val send_pong : t -> unit
val flushed : t -> (unit -> unit) -> unit
val close : ?code:Websocket.Close_code.t -> t -> unit
val is_closed : t -> bool