Skip to main content
Version: v4.6

doPoll

Poll a URL every five seconds. The default timeout is five minutes.

ParameterRequiredTypeDescription
urlYesStringPass the URL you want to poll.
ctxNoCtxContext, such as authorization token requirements, namespaces, or session storage.
optionsNoObjectAdd headers and poll parameters. For more information, see the following examples: options.headers = {}, options.maxPoll= 60, options.pollMilliSecs = 5000
Returns

Promise -