Canceling Data Requests Using Cloud Code for Data

Canceling Data Requests Using Cloud Code for Data

You have the option to cancel any request before it is executed if your application logic requires that. Simply call the cancel function in a pre-processing event.

Simply call the Everlive.Request.cancel() function.

Everlive.Events.beforeRead(function(request, response, context, done) {
    Everlive.Request.cancel();
    done();
});

The result will be similar to this:

{
    "message": "The request was cancelled by custom server code.",
    "errorCode": 910
}
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.