kvision / pl.treksoft.kvision.remote / CallAgent

CallAgent

open class CallAgent

An agent responsible for remote calls.

Constructors

<init>

CallAgent()

An agent responsible for remote calls.

Functions

jsonRpcCall

fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String>

Makes an JSON-RPC call to the remote server.

remoteCall

fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>

Makes a remote call to the remote server.