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 connection
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 set_command_handler :
t ->
(module Debug_protocol.COMMAND
with type Arguments.t = 'a
and type Result.t = 'b) ->
('a -> 'b Lwt.t) ->
unitset_command_handler rpc (module The_command) f Set handler f for The_command
remove_command_handler rpc (module The_command) Remove handler 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.