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 to_enum : t -> Ppx_deriving_runtime.int
val is_ctrl : t -> bool

is_ctrl opcode is true if opcode is a control frame.