CallAgent

open class CallAgent

An agent responsible for remote calls.

Constructors

CallAgent
Link copied to clipboard
js
fun CallAgent()

Functions

jsonRpcCall
Link copied to clipboard
js
fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST, requestFilter: RequestInit.() -> Unit? = null): Promise<String>

Makes an JSON-RPC call to the remote server.

remoteCall
Link copied to clipboard
js
fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", responseBodyType: ResponseBodyType = ResponseBodyType.JSON, requestFilter: RequestInit.() -> Unit? = null): Promise<dynamic>

Makes a remote call to the remote server.