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 Everlive.Request.cancel() function in a pre-processing event.

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

The above code results in the following:

{
    "message": "The request was cancelled by custom server code.",
    "errorCode": 910
}

See Also

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.