Call Agent
open class CallAgent
Content copied to clipboard
An agent responsible for remote calls.
Constructors
Functions
json Rpc Call
Link copied to clipboard
fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST, requestFilter: RequestInit.() -> Unit? = null): Promise<String>
Content copied to clipboard
Makes an JSON-RPC call to the remote server.
remote Call
Link copied to clipboard
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>
Content copied to clipboard
Makes a remote call to the remote server.