package ocamlformat-rpc-lib

  1. Overview
  2. Docs

Module V2.ClientSource

Sourcetype t
Sourceval pid : t -> int
Sourceval mk : pid:int -> IO.ic -> IO.oc -> t
Sourceval format : format_args:format_args -> string -> t -> (string, [> `Msg of string ]) result IO.t

format_args modifies the server's configuration temporarily, for the current request.

Sourceval halt : t -> (unit, [> `Msg of string ]) result IO.t

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