package websocket-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type source =
  1. | TCP of Ipaddr.t * int
  2. | Domain_socket of string
  3. | Vchan of Conduit_lwt_unix.vchan_flow
val send : t -> Websocket.Frame.t -> unit Lwt.t
val send_multiple : t -> Websocket.Frame.t list -> unit Lwt.t
val recv : t -> Websocket.Frame.t Lwt.t
val http_request : t -> Cohttp.Request.t

http_request returns the http request that initialized this websocket connection

val source : t -> source

source t is the source address of t.

OCaml

Innovation. Community. Security.