performRpc

open suspend override fun performRpc(destinationIdentity: Participant.Identity, method: String, payload: String, responseTimeout: Duration): 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. If a value less than 8s is provided, it will be automatically clamped to 8s to ensure sufficient time for round-trip latency buffering. Defaults to 15 seconds.

Throws

RpcError

on failure. Details in RpcError.message.