WebBrowser::AsyncInvokeJSONRPC (open)

Asynchronously executes a JSON RPC call

Syntax

LOADLIB "wh::internet/webbrowser.whlib";

ASYNC FUNCTION AsyncInvokeJSONRPC(STRING url, STRING methodname, VARIANT ARRAY args2, RECORD options)

Parameters

STRING url

Service URL

STRING methodname

Name of the method to call

VARIANT ARRAY args2

Arguments

RECORD options

Options

origin

Value for the origin header

version

JSON RPC value to use. '1.0' or '2.0', defaults to '1.0'

Return value

Promise resolbing to the RPC result

BOOLEAN haveresult

TRUE if the request returned a result

result

Result value (JSON-decoded)

BOOLEAN success

TRUE if the request returned a result