CallAgent

open class CallAgent(source)

An agent responsible for remote calls.

Constructors

Link copied to clipboard
constructor()

Functions

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

Makes an JSON-RPC call to the remote server.

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

Makes a remote call to the remote server.