package ocamlformat-rpc-lib

  1. Overview
  2. Docs

Module V1.ClientSource

include Client_S with type cmd = Command.t
Sourcetype t
Sourcetype cmd = Command.t
Sourceval pid : t -> int
Sourceval mk : pid:int -> IO.ic -> IO.oc -> t
Sourceval query : cmd -> t -> cmd IO.t
Sourceval halt : t -> (unit, [> `Msg of string ]) result IO.t

The caller must close the input and output channels after calling halt.

Sourceval config : (string * string) list -> t -> (unit, [> `Msg of string ]) result IO.t
Sourceval format : string -> t -> (string, [> `Msg of string ]) result IO.t
OCaml

Innovation. Community. Security.