kvision / pl.treksoft.kvision.remote / CallAgent / jsonRpcCall

jsonRpcCall

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

Makes an JSON-RPC call to the remote server.

Parameters

url - an URL address

data - data to be sent

method - a HTTP method

Return
a promise of the result