RpcManager

interface RpcManager

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun performRpc(destinationIdentity: Participant.Identity, method: String, payload: String, responseTimeout: Duration = 10.seconds): String

Initiate an RPC call to a remote participant

Link copied to clipboard
abstract suspend fun registerRpcMethod(method: String, handler: RpcHandler)

Establishes the participant as a receiver for calls of the specified RPC method. Will overwrite any existing callback for the same method.

Link copied to clipboard
abstract fun unregisterRpcMethod(method: String)

Unregisters a previously registered RPC method.