sendRequestObject<T> method
send request
object and wait for its response of type T
also throws RpcError if response has error
! Note: this method is not affect by batch mode
Implementation
Future<T> sendRequestObject<T>(RpcRequest request) {
sendRpcObject(request);
return request.waitForResponse<T>();
}