package tiny_libs

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

Module WebsocketSource

Sourceval accept : string -> string
Sourceval request : host:string -> path:string -> key:string -> string
Sourceval response : key:string -> string
Sourceval handshake : string -> ((string * string) list * int) option
Sourcetype opcode =
  1. | Continuation
  2. | Text
  3. | Binary
  4. | Close
  5. | Ping
  6. | Pong
Sourcetype frame = {
  1. fin : bool;
  2. opcode : opcode;
  3. payload : string;
}
Sourceval encode : ?mask:string -> frame -> string
Sourcetype decoded =
  1. | Frame of frame * int
  2. | Incomplete
  3. | Bad of string
Sourceval decode : string -> decoded