Class: AjaxPoll

AjaxPoll

Poll a url until a desired result is found within its response

Constructor

new AjaxPoll(options)

Constructor
Parameters:
Name Type Description
options object
Properties
Name Type Attributes Default Description
url string url to poll
maxPolls number <optional>
10 max poll attempts
maxFails number <optional>
10 max failures
expectation function | number | string <optional>
1 the expected value of the data response, or a function to run that returns a boolean based on the data
Source:

Extends

Methods

start() → {*}

Start polling
Overrides:
Source:
Returns:
Type
*

stop() → {AjaxModule}

Stops the interval
Inherited From:
Source:
Returns:
Type
AjaxModule