Module Debug_protocol.Event

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;
event : string;

Type of event.

body : Yojson.Safe.t;

Event-specific information.

}
val make : seq:int -> type_:Type.t -> event:string -> ?⁠body:Yojson.Safe.t -> unit -> t
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or