system.util.sendRequestAsync(project, messageHandler, [payload], [remoteServer], [timeoutSec], [onSuccess], [onError])
String project - The name of the project containing the message handler.
String messageHandler - The name of the message handler that will fire upon receiving a message.
Dictionary[String, Any] payload - A dictionary which will get passed to the message handler. Use "payload" in the message handler to access dictionary variables. [optional]
String hostName - Limits the message delivery to the client that has the specified network host name. [optional]
String remoteServer - A string representing the target Gateway server name. The message will be delivered to the remote Gateway over the Gateway Network. Upon delivery, the message is distributed to the local Gateway and clients as per the other parameters. [optional]
String timeoutSec - The number of seconds before the sendRequest call times out. [optional]
Callable onSuccess- Should take one argument, which will be the result from the message handler. Callback functions will be executed on the GUI thread, similar to system.util.invokeLater. [optional]
Callable onError- Should take one argument, which will be the exception encountered. Callback functions will be executed on the GUI thread, similar to system.util.invokeLater. [optional]
Request Handle - The Request object that can be used while waiting for the message handler callback.
Gateway, Vision Client, Perspective Session