class static
meteoJS/repetitiveRequests . RepetitiveRequests
Source: RepetitiveRequests.
Makes requests again and again. Useful to stay up to date with the data available on the server. If the response returns a Cache-Control HTTP-Header, then the next request will be done per default after this time.
Properties
new RepetitiveRequests([options])
Parameter
Name | Type | Optional | Description |
---|---|---|---|
options |
|
Yes |
Options. |
Properties
password string
Password to send with request.
responseType string
Content type of the response.
url (undefined or string)
Current URL to make requests to.
user string
User to send with request.
Methods
start()
Start repetitive requests. Makes immediatly the first request.
stop()
Stops repetitive requests. Events aren't triggered anymore. Even if a former request creates a response.