Module Debug_protocol.Protocol_message

module Type : sig ... end
type t = {
seq : int;

Sequence number (also known as message ID). For protocol messages of type 'request' this ID can be used to cancel the request.

type_ : Type.t;

Message type.

}

Base class of requests, responses, and events.

val make : seq:int -> type_:Type.t -> t
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or