package conduit

  1. Overview
  2. Docs

The signature for runtime handlers

type t

The type for runtime handlers.

type client

The type for client configuration values.

include sig ... end
val client_of_sexp : Sexplib.Sexp.t -> client
val sexp_of_client : client -> Sexplib.Sexp.t
type server

The type for server configuration values.

include sig ... end
val server_of_sexp : Sexplib.Sexp.t -> server
val sexp_of_server : server -> Sexplib.Sexp.t
val connect : t -> client -> Flow.flow Lwt.t

Connect a conduit using client configuration.

val listen : t -> server -> callback -> unit Lwt.t

Listen to a conduit using a server configuration.