package async_websocket

  1. Overview
  2. Docs
type t = {
  1. opcode : Opcode.t;
  2. final : bool;
  3. content : string;
}
val sexp_of_t : t -> Sexplib0.Sexp.t
module Error : sig ... end
val read_frame : Async.Reader.t -> (t, Error.t) Core.Result.t Async.Deferred.t
val write_frame : masked:bool -> Async.Writer.t -> t -> unit
val create : opcode:Opcode.t -> ?final:bool -> string -> t
val create_close : code:int -> ?final:bool -> string -> t
OCaml

Innovation. Community. Security.