package jsonrpc

  1. Overview
  2. Docs

Module Jsonrpc.MessageSource

Sourcemodule Structured : sig ... end
Sourcetype 'id t = {
  1. id : 'id;
  2. method_ : string;
  3. params : Structured.t option;
}
Sourceval params : _ t -> (Yojson.Safe.t -> 'a) -> ('a, string) Result.t
Sourceval create : ?params:Structured.t -> id:'id -> method_:string -> unit -> 'id t
Sourcetype request = Id.t t
Sourcetype notification = unit t
Sourcetype either = Id.t option t
Sourceval either_of_yojson : Yojson.Safe.t -> either
Sourceval yojson_of_either : either -> Yojson.Safe.t
Sourceval yojson_of_notification : notification -> Yojson.Safe.t
Sourceval yojson_of_request : request -> Yojson.Safe.t