Hcs.Websocket.Opcode
hcs · API reference
WebSocket frame opcode
type t =
| Continuation (* 0x0 *)
| Text (* 0x1 *)
| Binary (* 0x2 *)
| Close (* 0x8 *)
| Ping (* 0x9 *)
| Pong (* 0xA *)
| Ctrl of int (* Other control opcodes *)
| Nonctrl of int (* Other non-control opcodes *)val to_int : t -> intval of_int : int -> tval int_to_string : int -> stringval to_string : t -> stringval is_control : t -> bool