performRpc
suspend fun performRpc(destinationIdentity: Participant.Identity, method: String, payload: String, responseTimeout: Duration = 10.seconds): String
Initiate an RPC call to a remote participant
Return
The response payload.
Parameters
destinationIdentity
The identity of the destination participant.
method
The method name to call.
payload
The payload to pass to the method.
responseTimeout
Timeout for receiving a response after initial connection. Defaults to 10000. Max value of UInt.MAX_VALUE milliseconds.
Throws
on failure. Details in RpcError.message.