From 89a50c2f8f45a4d5a1bfbc2eb8e29e5836feeccb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 2 Apr 2020 21:50:07 +0200 Subject: docs: update js api docs Signed-off-by: Jo-Philipp Wich --- docs/jsapi/LuCI.Request.poll.html | 2619 ------------------------------------- 1 file changed, 2619 deletions(-) delete mode 100644 docs/jsapi/LuCI.Request.poll.html (limited to 'docs/jsapi/LuCI.Request.poll.html') diff --git a/docs/jsapi/LuCI.Request.poll.html b/docs/jsapi/LuCI.Request.poll.html deleted file mode 100644 index 7a993ab57c..0000000000 --- a/docs/jsapi/LuCI.Request.poll.html +++ /dev/null @@ -1,2619 +0,0 @@ - - - - - Class: poll - - - - - - - - - - - - - - - - - -
- - -
-

Class: poll

- - - - -
- -
-

- LuCI.Request. - - poll -

- -

The Request.poll class provides some convience wrappers around -LuCI.Poll mainly to simplify registering repeating HTTP -request calls as polling functions.

- -
- -
-
- - - - -
-
-

- - new LuCI.Request.poll() -

- - - - -
- - -
-
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - -
- - - - - - - - - - - - - - -

Methods

- -
- -
-
-

- - active() -

- - - - -
- - -
-
- - -
-

Alias for LuCI.Poll.active().

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - -
-
-

- - add(interval, url, options, callback){function} -

- - - - -
- - -
-
- - -
-

Register a repeating HTTP request with an optional callback -to invoke whenever a response for the request is received.

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
interval - - -number - - - - - - - - - - -

The poll interval in seconds.

url - - -string - - - - - - - - - - -

The URL to request on each poll.

options - - -LuCI.Request.RequestOptions - - - - - - - optional - - - - - -

Additional options to configure the request.

callback - - -LuCI.Request.poll~callbackFn - - - - - - - optional - - - - - -

Callback function to -invoke for each HTTP reply.

- - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - -
Throws:
- - - -
-
-
-

Throws TypeError when an invalid interval was passed.

-
-
-
-
-
- Type -
-
- -TypeError - - -
-
-
-
- - - - - -
Returns:
- - - - - - - - - - - - - - - - - - - - -
TypeDescription
- - function - - - Returns the internally created poll function.
- - - - -
- - - -
-
-

- - remove(entry){boolean} -

- - - - -
- - -
-
- - -
-

Remove a polling request that has been previously added using add(). -This function is essentially a wrapper around -LuCI.Poll.remove().

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
entry - - -function - - - - - -

The poll function returned by add().

- - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
Returns:
- - - - - - - - - - - - - - - - - - - - -
TypeDescription
- - boolean - - - Returns true if any function has been removed, else false.
- - - - -
- - - -
-
-

- - start() -

- - - - -
- - -
-
- - -
-

Alias for LuCI.Poll.start().

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - -
-
-

- - stop() -

- - - - -
- - -
-
- - -
-

Alias for LuCI.Poll.stop().

-
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- -
- - - -

Type Definitions

- -
- -
-
-

- - callbackFn(res, data, duration) -

- - - - -
- - -
-
- - -
-

The callback function is invoked whenever an HTTP reply to a -polled request is received or when the polled request timed -out.

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
res - - -LuCI.Response - - - - - -

The HTTP response object.

data - - -* - - - - - -

The response JSON if the response could be parsed as such, -else null.

duration - - -number - - - - - -

The total duration of the request in milliseconds.

- - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- -
- - - - - -
- -
- - - - - - - -
- Documentation generated by JSDoc 3.6.3 on Tue Mar 31 2020 21:30:33 GMT+0200 (Central European Summer Time) -
-
-
- - - - \ No newline at end of file -- cgit v1.2.3