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 urlService URL
STRING methodnameName of the method to call
VARIANT ARRAY args2Arguments
RECORD optionsOptions
originValue for the origin header
versionJSON RPC value to use. '1.0' or '2.0', defaults to '1.0'
Return value
Promise resolbing to the RPC result
BOOLEAN haveresultTRUE if the request returned a result
resultResult value (JSON-decoded)
BOOLEAN successTRUE if the request returned a result