Add method to send and receive a RPC