Receives a reply to an asynchronous request.
- Parameters
-
[in] | requestId | Unique identifier for the request. |
[in] | timeoutMs | Timeout interval in milliseconds. |
- Returns
- The return value is the reply data in JSON format.
- Usage
- Open a client connection before calling this method, using opClientConnection(string ip, int port) or open.
- Specify a unique identifier for the request that was returned by a call to sendRequest using the requestId parameter.
- If a reply is not available within the timeout interval specified by the timeoutMs parameter, the method fails. If the value of the timeoutMs parameter is negative or zero, the default timeout interval of 2500 milliseconds is used.
- See also
- open, opClientConnection(string ip, int port) and sendRequest.