Debug_rpcSourceThe type of rpc connection
val create :
in_:Lwt_io.input_channel ->
out:Lwt_io.output_channel ->
?next_seq:int ->
unit ->
tcreate ~in_ ~out ?next_seq () Create a rpc session
event rpc (module The_event) Get a The_event.Payload.t React.E.t for opposite end sent events
val send_event :
t ->
(module Debug_protocol.EVENT with type Payload.t = 'a) ->
'a ->
unit Lwt.tsend_event rpc (module The_event) payload Send event with payload to the opposite end
val register_command :
t ->
(module Debug_protocol.COMMAND
with type Arguments.t = 'a
and type Result.t = 'b) ->
(t -> 'a -> string -> 'b Lwt.t) ->
unitregister_command rpc (module The_command) f Register command handler f for The_command
val exec_command :
t ->
(module Debug_protocol.COMMAND
with type Arguments.t = 'a
and type Result.t = 'b) ->
'a ->
'b Lwt.texec_command rpc (module The_command) arg Execute The_command with arg on the opposite end.