connect

suspend fun connect(exceptionMap: RpcExceptionMap, httpClientEngine: HttpClientEngineFactory<*>, url: String, secureArea: SecureArea, storage: Storage): RpcAuthorizedClient

Connects to a secure RPC server using ktor HTTP client.

Return

object that can be used to create stub objects for RPC interfaces

Parameters

exceptionMap

contains exceptions that are used in this RPC connection

httpClientEngine

ktor HTTP client engine to use

url

RPC server endpoint

secureArea

SecureArea that stores private key that identifies this client

storage

Storage that holds information identifying this client across sessions


suspend fun connect(exceptionMap: RpcExceptionMap, httpTransport: HttpTransport, transportUri: String, secureArea: SecureArea, storage: Storage): RpcAuthorizedClient

Connects to a secure RPC server using given HttpTransport implementation.