package trail

  1. Overview
  2. Docs

Module Trail.SockSource

Sourcetype upgrade_opts = {
  1. do_upgrade : bool;
}
Sourcetype ('state, 'error) handle_result = [
  1. | `push of Frame.t list * 'state
  2. | `ok of 'state
  3. | `error of 'state * 'error
]
Sourcemodule type Intf = sig ... end
Sourcetype t
Sourceval make : (module Intf with type args = 'a and type state = 'b) -> 'a -> t
Sourceval init : t -> Atacama.Connection.t -> [> `continue of Atacama.Connection.t * t | `error of Atacama.Connection.t * [> `Unknown_opcode of int ] ]
Sourceval handle_frame : t -> Frame.t -> Atacama.Connection.t -> [> `continue of Atacama.Connection.t * t | `error of Atacama.Connection.t * [> `Unknown_opcode of int ] | `push of Frame.t list * t ]
Sourceval handle_message : t -> Riot.Message.t -> 'a -> [> `continue of 'a * t | `error of 'a * [> `Unknown_opcode of int ] | `push of Frame.t list * t ]
Sourcemodule Default : sig ... end
OCaml

Innovation. Community. Security.