package websocket

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Opcode : sig ... end

Type representing websocket opcodes

type t = {
  1. opcode : Opcode.t;
  2. extension : int;
  3. final : bool;
  4. content : string;
}

The type representing websocket frames

val create : ?opcode:Opcode.t -> ?extension:int -> ?final:bool -> ?content:string -> unit -> t
val close : int -> t