package piaf

  1. Overview
  2. Docs
type t
val messages : t -> Message.t Stream.t

Stream of incoming websocket messages (frames)

val send_iovec : t -> Bigstringaf.t IOVec.t -> unit
val send_stream : t -> Bigstringaf.t IOVec.t Stream.t -> unit
val send_string_stream : t -> string Stream.t -> unit
val send_string : t -> string -> unit
val send_bigstring : t -> ?off:int -> ?len:int -> Bigstringaf.t -> unit
val send_ping : ?application_data:Bigstringaf.t IOVec.t -> t -> unit
val send_pong : ?application_data:Bigstringaf.t IOVec.t -> t -> unit
val flushed : t -> unit Eio.Promise.t
val close : t -> unit
val is_closed : t -> bool
OCaml

Innovation. Community. Security.