package websocket

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Type representing websocket opcodes

type t =
  1. | Continuation
  2. | Text
  3. | Binary
  4. | Close
  5. | Ping
  6. | Pong
  7. | Ctrl of int
  8. | Nonctrl of int
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val show : t -> Ppx_deriving_runtime.string
val min : Ppx_deriving_runtime.int
val max : Ppx_deriving_runtime.int
val to_enum : t -> Ppx_deriving_runtime.int
val of_enum : Ppx_deriving_runtime.int -> t Ppx_deriving_runtime.option
val is_ctrl : t -> bool

is_ctrl opcode is true if opcode is a control frame.

OCaml

Innovation. Community. Security.